This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50122] New: Same labels in nested scoping units rejected
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2011 23:14:39 +0000
- Subject: [Bug fortran/50122] New: Same labels in nested scoping units rejected
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50122
Bug #: 50122
Summary: Same labels in nested scoping units rejected
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mikael@gcc.gnu.org
Follow-up to PR 50071, reported by Tobias at:
http://gcc.gnu.org/ml/fortran/2011-08/msg00109.html
and:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50071#c3
As labels belong to a scoping unit, it should not be a problem to have one
label in a nested scoping unit with the same number as another label in a
parent scope.
block
goto 1
print *, 'Hello'
1 continue
end block
1 continue
end
Tobias also raised a question at J3 WRT the validity of the snippet above:
http://j3-fortran.org/pipermail/j3/2011-August/004585.html