https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124208
Bug ID: 124208
Summary: [16 Regression] ice in gfc_resolve_forall, at
fortran/resolve.cc:12703
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
For this F90 code:
integer :: arr(4)
do concurrent (i=1:5)
associate (a=>i)
forall( a=1:10,arr(a)==0)
end forall
end associate
end do
end
from the Fujitsu test suite at
https://github.com/fujitsu/compiler-test-suite
does this with recent gfortran:
$ ~/gcc/results/bin/gfortran -c -w trunk/Fortran/0887/0887_0005.f90
f951: internal compiler error: in gfc_resolve_forall, at
fortran/resolve.cc:12703
0x2015cd7 internal_error
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0x201feeb fancy_abort
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostics/context.cc:1812
0x4e1ce0 gfc_resolve_forall
/home/dcb42/gcc/working/gcc/../../trunk/gcc/fortran/resolve.cc:12703
0x4dca2a gfc_resolve_code
/home/dcb42/gcc/working/gcc/../../trunk/gcc/fortran/resolve.cc:14022
The bug first seems to occur sometime between date
20251101 and date 20251201.
Git hashes are g:468f8a3df1cd9e63 and g:e1f33d3890ddccca.
This is 872 commits.