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

Reply via email to