[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Fri Nov 16 15:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-11-16
CC| |jvdelisle at gcc dot gnu.org
Ever confirmed|0 |1
Severity|normal |enhancement
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from at least 4.8 up to trunk (9.0).
The missing comma is diagnosed at compile time for
print "(AF9.6)", 'pi =',4*atan(1.0)
or
print 10, 'pi =',4*atan(1.0)
10 format(AF9.6)
AFAIU for
print fmt, 'pi =',4*atan(1.0)
the parsing of fmt is done at run time without provision for standard checking.
This is related to pr28397 and pr35844, both rotting since a very long time.
More information about the Gcc-bugs
mailing list