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/21257] New: Duplicate use of construct name


Consider the following program:

   program f
     integer i
     loop: do i = 1, 5
              print *, i
           end do loop
     loop: do i = 1, 5
              print *, i
           end do loop
   end program f

Gfortran compiles the program and it executes both loops.
NAG's compiler claims it is illegal.

kargl[206] f95 -o f f.f90
Error: f.f90, line 9: Duplicate construct name LOOP
       detected at <end-of-statement>@LOOP
[f95 terminated - errors found by pass 1]

-- 
           Summary: Duplicate use of construct name
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kargl at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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