https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77678
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to Richard Biener from comment #5) > ICE fixed. Add -fcheck=all to your command line options. With the ICE fixed, I think that this falls squarely in the WONTFIX or INVALID category. It is the user's responsibility to check if the value of i is within the bounds of the string. % gfc7 -o z -O2 -fcheck=all -finit-integer=-123456 a.f90 && ./z At line 5 of file a.f90 Fortran runtime error: Substring out of bounds: lower bound (-123456) is less than one