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/52564] New: Accepts invalid: Missing I/O list after comma


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52564

             Bug #: 52564
           Summary: Accepts invalid: Missing I/O list after comma
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: w6ws@earthlink.net


In the following test case, gfortran does not diagnose the missing I/O list
after the comma in the print statement:

program printbug
  print *, 'hello world'
! the following line should not compile:
  print *,
end program

Other compilers do diagnose it.

First noticed on 4.6.1, but is also a problem with 4.8 snapshot.


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