This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50121] Labels in a TYPE statement should be put in the derived type's scope
- 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:16:31 +0000
- Subject: [Bug fortran/50121] Labels in a TYPE statement should be put in the derived type's scope
- Auto-submitted: auto-generated
- References: <bug-50121-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50121
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> 2011-08-18 23:16:31 UTC ---
The snippet above is rejected with:
pr50121.f90:1.1:
1 type t
1
pr50121.f90:6.1:
1 print *, 'Hello'
2
Error: Duplicate statement label 1 at (1) and (2)
pr50121.f90:1.1:
1 type t
1
pr50121.f90:5.9:
goto 1
2
Error: Statement at (1) is not a valid branch target statement for the branch
statement at (2)