OSDN Git Service

2009-10-22 Janus Weil <janus@gcc.gnu.org>
authorjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 08:53:26 +0000 (08:53 +0000)
committerjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 08:53:26 +0000 (08:53 +0000)
commitf30e488d09d7e3a1055346d2e5b4b167959dbd63
tree74a64b748e313ef72c5dd3cece6e6507c616170e
parentf58620b7d8f8dc52f9f8e072a49f99df444d43ec
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153446 138bc75d-0d04-0410-961f-82ee72b054a4
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]