------- Comment #13 from burnus at gcc dot gnu dot org 2009-08-05 20:36 ------- (In reply to comment #11) > This patch works: > + if (typelist || sym->attr.if_source != IFSRC_UNKNOWN) > + typelist = gfc_chainon_list (typelist, void_type_node);
That patch essentially undoes the patch of PR 40949 as this is essentially identically to if (typelist) typelist = gfc_chainon_list (typelist, void_type_node); I think it is best to go back to the old version (i.e. revert the patch PR 40949) and fix it properly as proposed in PR 40976 (and in PR 40978) -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|burnus at gcc dot gnu dot |unassigned at gcc dot gnu |org |dot org Status|ASSIGNED |NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40969