http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50408
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-25 17:18:10 UTC --- Author: burnus Date: Fri Nov 25 17:18:05 2011 New Revision: 181726 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181726 Log: 2011-11-25 Tobias Burnus <bur...@net-b.de> PR fortran/50408 * trans-decl.c (gfc_get_module_backend_decl): Also copy ts.u.derived from the gsym if the ts.type is BT_CLASS. (gfc_get_extern_function_decl): Copy also the backend_decl for the symbol's ts.u.{derived,cl} from the gsym. * trans-types.c (gfc_copy_dt_decls_ifequal): Directly return if "from" and "to" are the same. 2011-11-25 Tobias Burnus <bur...@net-b.de> PR fortran/50408 * gfortran.dg/whole_file_35.f90: New. Added: branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/whole_file_35.f90 Modified: branches/gcc-4_6-branch/gcc/fortran/ChangeLog branches/gcc-4_6-branch/gcc/fortran/trans-decl.c branches/gcc-4_6-branch/gcc/fortran/trans-types.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog