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/50122] New: Same labels in nested scoping units rejected


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


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