[Bug fortran/100683] Array initialization refuses valid

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sun Jun 13 16:24:12 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100683

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Can you provide some more detail on your setup?

program p
   integer, parameter :: a(2) = 1
   integer, parameter :: b = a(2)%kind
end

I get the ICE with a patched master and a genuine GCC11 with only the patch at
https://gcc.gnu.org/pipermail/fortran/2021-May/056053.html.

COLLECT_GCC=gfc11
COLLECT_LTO_WRAPPER=/opt/gcc/gcc11w/libexec/gcc/x86_64-apple-darwin20.5.0/11.1.1/lto-wrapper
Target: x86_64-apple-darwin20.5.0
Configured with: ../11_work/configure --prefix=/opt/gcc/gcc11w
--enable-languages=c,c++,d,fortran,ada,lto,objc,obj-c++ --with-gmp=/opt/mp
--with-isl=/opt/mp --enable-plugin
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
--with-as=/opt/mp/bin/as
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.1 20210612 [revision r11-8563-gf9cc49ecebfap1] (GCC) 

or

COLLECT_GCC=gfc
COLLECT_LTO_WRAPPER=/opt/gcc/gcc12w/libexec/gcc/x86_64-apple-darwin20.5.0/12.0.0/lto-wrapper
Target: x86_64-apple-darwin20.5.0
Configured with: ../work/configure --prefix=/opt/gcc/gcc12w
--enable-languages=c,c++,d,fortran,ada,lto,objc,obj-c++ --with-gmp=/opt/mp
--with-isl=/opt/mp --enable-plugin
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
--with-as=/opt/mp/bin/as
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210612 (experimental) [master revision
r12-1403-gc4e50e500da7p14] (GCC)


More information about the Gcc-bugs mailing list