re PR fortran/50071 (gfortran does not distinguish labels in different type scoping...
authorMikael Morin <mikael.morin@sfr.fr>
Thu, 18 Aug 2011 21:39:42 +0000 (23:39 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Thu, 18 Aug 2011 21:39:42 +0000 (21:39 +0000)
commit4ee3237e0b5796d047d0b9f01fbe0277ff14d083
treefeabc159e1ce25b8141bef017a5b572e13771166
parentbbceee64bef15b92b1f9b964b8d371bd07ea794a
re PR fortran/50071 (gfortran does not distinguish labels in different type scoping units)

2011-08-18  Mikael Morin  <mikael.morin@sfr.fr>

PR fortran/50071
* symbol.c (gfc_get_st_label): Use the derived type namespace when
we are parsing a derived type definition.

2011-08-18  Mikael Morin  <mikael.morin@sfr.fr>

PR fortran/50071
* gfortran.dg/duplicate_labels_2.f: New test.

From-SVN: r177882
gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/duplicate_labels_2.f [new file with mode: 0644]