This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36725] New: g0 edit descriptor: Missing compile-time checking for invalid g0.d
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2008 06:12:34 -0000
- Subject: [Bug fortran/36725] New: g0 edit descriptor: Missing compile-time checking for invalid g0.d
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Currently, gfortran compiles:
print '(g0.9)', 0.1
end
and prints at run time:
Fortran runtime error: Unexpected element in format
(g0.9)
^
The run-time error is OK, but there should be a compile-time error.
G w [ . d [ E e ] ]
"C1007 (R1006) For the G edit descriptor, d shall be specified if and
only if w is not zero." (F2008)
--
Summary: g0 edit descriptor: Missing compile-time checking for
invalid g0.d
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36725