http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50408
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-25 16:27:01 UTC --- Author: burnus Date: Fri Nov 25 16:26:47 2011 New Revision: 181725 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181725 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: trunk/gcc/testsuite/gfortran.dg/whole_file_35.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c trunk/gcc/fortran/trans-types.c trunk/gcc/testsuite/ChangeLog