17264, "cassella", "Can't create array over int(8) domain with more than 127 elements", "2021-02-25T05:09:08Z"
Summary of Problem
Source Code:
var lo = -0x1:int(8);
var hi = 0x7e:int(8);
writeln((lo,hi));
var A : [lo..hi] int;
writeln(A);
(-1, 126)
$CHPL_HOME/modules/internal/ChapelBase.chpl:960: error: Attempting to allocate > max(size_t) bytes of memory
I added a writeln(size)
to ChapelBase.chpl
, which reports -128
.
It works if hi is 0x7d
, reporting a size of 127
.
Associated Future Test(s):
None yet.
Configuration Information
chpl version 1.24.0 pre-release (57a3573b44)
CHPL_TARGET_PLATFORM: linux64
CHPL_TARGET_COMPILER: gnu
CHPL_TARGET_ARCH: x86_64
CHPL_TARGET_CPU: native *
CHPL_LOCALE_MODEL: flat
CHPL_COMM: gasnet *
CHPL_COMM_SUBSTRATE: udp
CHPL_GASNET_SEGMENT: everything
CHPL_TASKS: qthreads
CHPL_LAUNCHER: amudprun
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: jemalloc
CHPL_ATOMICS: cstdlib
CHPL_NETWORK_ATOMICS: none
CHPL_GMP: none
CHPL_HWLOC: bundled
CHPL_REGEXP: re2
CHPL_LLVM: none
CHPL_AUX_FILESYS: none
gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0