]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/41781 ([OOP] bogus undefined label error with SELECT TYPE.)
authorJanus Weil <janus@gcc.gnu.org>
Thu, 22 Oct 2009 08:53:26 +0000 (10:53 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 22 Oct 2009 08:53:26 +0000 (10:53 +0200)
commit76d02e9fa7f8acbbc3fe7a6c5dd6156777f00f24
tree74a64b748e313ef72c5dd3cece6e6507c616170e
parent7e1e7d4cc65dedaf07bbbb367253b569f2311c66
re PR fortran/41781 ([OOP] bogus undefined label error with SELECT TYPE.)

2009-10-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41781
* resolve.c (resolve_codes): Don't clear 'cs_base' for BLOCK constructs,
to make sure labels are treated correctly.
* symbol.c (gfc_get_st_label): Create labels in the right namespace.
For BLOCK constructs go into the parent namespace.

2009-10-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41781
* gfortran.dg/goto_8.f90: New test case.

From-SVN: r153446
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goto_8.f90 [new file with mode: 0644]