https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119157
Bug ID: 119157
Summary: ice in gfc_enforce_clean_symbol_state, at
fortran/symbol.cc:4459
Product: gcc
Version: 15.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 60674
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60674&action=edit
Fortran 90 source code
For the attached F90 code, recent gfortran does this:
foundBugs $ ../results.20250304.ubsan/bin/gfortran -c -Wall bug1091.f90
bug1091.f90:83:15:
83 | INTEGER iwa (n), nprint, nfev
| 1~~~~~~
Warning: Unused variable ‘iwa’ declared at (1) [-Wunused-variable]
foundBugs $ ../results.20250305.ubsan/bin/gfortran -c -Wall bug1091.f90
f951: internal compiler error: in gfc_enforce_clean_symbol_state, at
fortran/symbol.cc:4459
foundBugs $ ../results.20250304.ubsan/bin/gfortran -v 2>&1 | grep exp
gcc version 15.0.1 20250304 (experimental) (5bd664838398980f)
foundBugs $ ../results.20250305.ubsan/bin/gfortran -v 2>&1 | grep exp
gcc version 15.0.1 20250305 (experimental) (24ea4539300d4926)
foundBugs $
That's a range of 34 commits.