This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/36725] New: g0 edit descriptor: Missing compile-time checking for invalid g0.d


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]