http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52622
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code CC| |burnus at gcc dot gnu.org --- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-03-22 06:58:43 UTC --- I can reproduce the failure with gcc-Version 4.6.2 20111011 (prerelease) [gcc-4_6-branch revision 179784] (GCC) 4.6.4 20120310 (prerelease) [gcc-4_6-branch revision 185168] (GCC) however, for some reasons not with gcc version 4.6.2 20111212 [gcc-4_6-branch revision 182222] (SUSE Linux) However, also with 4.8.0 20120320, I do see a failure in valgrind: ==6587== Invalid read of size 4 ==6587== at 0x5859C5: resolve_symbol(gfc_symbol*) (resolve.c:10613) ==6587== by 0x5A3253: do_traverse_symtree(gfc_symtree*, void (*)(gfc_symtree*), void (*)(gfc_symbol*)) (symbol.c:3386) ==6587== by 0x58FC13: resolve_types(gfc_namespace*) (resolve.c:13961) ==6587== by 0x58FCF7: resolve_types(gfc_namespace*) (resolve.c:13972) ==6587== by 0x584043: gfc_resolve(gfc_namespace*) (resolve.c:14061) * * * In 4.6, I have sym->formal_ns == NULL, which crashes for "sym->formal_ns->refs++;". In case of 4.8, it is more difficult as there is no crash for me but just the valgrind warning.