This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21257] New: Duplicate use of construct name
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2005 19:02:24 -0000
- Subject: [Bug fortran/21257] New: Duplicate use of construct name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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