------- Comment #2 from burnus at gcc dot gnu dot org 2010-09-01 21:19 ------- (In reply to comment #1) > Note: The following simple patch does *not* work but gives an ICE: > test.f90:9:0: internal compiler error: in gfc_get_symbol_decl, at > fortran/trans-decl.c:1055
It seems to work if one adds if (!a->referenced && sym->value) gfc_set_sym_referenced (sym); after apply_default_init (sym); in the inner if-block. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45489