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: unassig...@gcc.gnu.org ReportedBy: mik...@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