https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95323
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org Component|fortran |tree-optimization Status|WAITING |NEW --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to David Binderman from comment #3) > (In reply to anlauf from comment #1) > > local.f90:3: Error: Can't open included file 'SIZES' > > > > Please include everything needed to reproduce. > > Done. > > > Are you sure this is a fortran bug, rather than tree-optimization? > > Not using -O2 makes the code compile, so something in the optimiser > is going wrong, triggered by Fortran source code. OK, using -O0, -Og, or -Os makes the code compile, -O1, -O2 or higher ICEs. This looks fishy. I'd prefer someone with better middle-end knowledge to look at it.