$ cat tst.f
program test
199999     real :: a=5
end program test

$ gfortran tst.f
In file ice.f90:2

199999       a=5
   1
Warning: Ignoring bad statement label at (1)

I think the compiler should give hard error with error message something like 
"label must be less than or equal to five digits", or 
"Statement label contains more than 5 digits.".


-- 
           Summary: accepting invalid label
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uttamp at us dot ibm dot com
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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

Reply via email to