http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53537
--- Comment #11 from Mikael Morin <mikael at gcc dot gnu.org> 2013-02-17 22:59:59 UTC --- Author: mikael Date: Sun Feb 17 22:59:52 2013 New Revision: 196112 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196112 Log: 2013-02-17 Tobias Burnus <bur...@net-b.de> Mikael Morin <mik...@gcc.gnu.org> Backport from trunk 2013-01-28 Tobias Burnus <bur...@net-b.de> Mikael Morin <mik...@gcc.gnu.org> PR fortran/53537 * symbol.c (gfc_find_sym_tree): Don't look for the symbol outside an interface block. (gfc_get_ha_symtree): Let gfc_find_sym_tree lookup the parent namespace. * decl.c (gfc_match_data_decl): Ditto. (variable_decl): Remove undeclared type error. (gfc_match_import): Use renamed instead of original name. 2013-02-17 Tobias Burnus <bur...@net-b.de> Mikael Morin <mik...@gcc.gnu.org> Backport from trunk 2013-01-28 Tobias Burnus <bur...@net-b.de> Mikael Morin <mik...@gcc.gnu.org> PR fortran/53537 * gfortran.dg/import2.f90: Adjust undeclared type error messages. * gfortran.dg/import8.f90: Likewise. * gfortran.dg/interface_derived_type_1.f90: Likewise. * gfortran.dg/import10.f90: New test. * gfortran.dg/import11.f90: Likewise Added: branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/import10.f90 branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/import11.f90 Modified: branches/gcc-4_7-branch/gcc/fortran/ChangeLog branches/gcc-4_7-branch/gcc/fortran/decl.c branches/gcc-4_7-branch/gcc/fortran/symbol.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/import2.f90 branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/import8.f90 branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/interface_derived_type_1.f90