https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68040
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Is this configured with --enable-checking=release ? This is probably an ICE that occurs earlier than reported with --enabled-checking=release. Configure with --enable-checking=yes. It should be possible to get a more precise revision. Those two do not look like the cause of the problem. My guess is that Fortran is calling into the middle-end without calling gfc_diagnostics_finish(). The format decoder gfc_format_decoder does not support %E, thus either Fortran adds support for %E or it calls gfc_diagnostic_finish before reaching this point. However, I would argue that this precise warning does not need to use %E and it could simply use %s, which will make it less dependent on trees and fix this bug without further changes in Fortran.