https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95323
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- (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.