------- Comment #9 from pault at gcc dot gnu dot org 2007-12-21 21:20 ------- Subject: Bug 34438
Author: pault Date: Fri Dec 21 21:20:38 2007 New Revision: 131124 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131124 Log: 2007-12-21 Paul Thomas <[EMAIL PROTECTED]> PR fortran/34438 * trans-decl.c (gfc_finish_var_decl): Do not mark derived types with default initializers as TREE_STATIC unless they are in the main program scope. (gfc_get_symbol_decl): Pass derived types with a default initializer to gfc_defer_symbol_init. (init_default_dt): Apply default initializer to a derived type. (init_intent_out_dt): Call init_default_dt. (gfc_trans_deferred_vars): Ditto. * module.c (read_module): Check sym->module is there before using it in a string comparison. 2007-12-21 Paul Thomas <[EMAIL PROTECTED]> PR fortran/34438 * gfortran.dg/default_initialization_3.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/default_initialization_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/module.c trunk/gcc/fortran/trans-decl.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34438