https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64066

            Bug ID: 64066
           Summary: [F2008] Wrongly accepts ; (semicolon) at ending a null
                    token
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org

Fortran 2008 permits:
  I=1&
  ;END

i.e. a continued line which starts with a ";".

gfortran wrongly also accepts a null statement terminated with a ';':

  ;END

That's a "regression" in gfortran 4.6, which adds this feature.

See also thread at
https://groups.google.com/forum/#!topic/comp.lang.fortran/hCuhaQv6JGc ("Short
F2008 program") around 24 November; I believe it was also recently discussed at
the J3 mailing list, but their archive is currently down.

Reply via email to