https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128763
Bug ID: 128763
Summary: [17 regression] ice in walk_coarray, at
fortran/trans-array.cc:8096
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 66178
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66178&action=edit
F90 source code
The attached Fortran code, from the Fujitsu test suite on github,
does this with gfortran 16.2.0
$ ~/gcc/results.16.2.0/bin/gfortran -c -w
/home/dcb42/fujitsu/trunk/Fortran/0559/0559_0061.f90
$
But for recent gfortran trunk:
$ ~/gcc/results/bin/gfortran -c -w
/home/dcb42/fujitsu/trunk/Fortran/0559/0559_0061.f90
/home/dcb42/fujitsu/trunk/Fortran/0559/0559_0061.f90:24:74:
24 | _obj=ty2(2,5)(10.0,ty1(2,5)('HI-PDT',ty(10,'HELLO'),100,[20,20,20,20]))
| 1
internal compiler error: in walk_coarray, at fortran/trans-array.cc:8099
0x2129e07 internal_error
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0x213402b fancy_abort
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostics/context.cc:1813
0x547b35 walk_coarray
/home/dcb42/gcc/working/gcc/../../trunk/gcc/fortran/trans-array.cc:8099
0x547b35 gfc_conv_expr_descriptor
/home/dcb42/gcc/working/gcc/../../trunk/gcc/fortran/trans-array.cc:8204
Compiler is
$ ~/gcc/results/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results/bin/gfortran
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20261115.asan.ubsan/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20261115.asan.ubsan --disable-analyzer
--disable-bootstrap --disable-doc --disable-fixincludes --disable-multilib
--with-build-config='bootstrap-asan bootstrap-ubsan'
--with-pkgversion=4182b22649d4682c --enable-checking=yes
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20261115 (experimental) (4182b22649d4682c)
~ $