http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48939
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-05-09 20:27:30 UTC --- I can reproduce the failure with 4.6.1 20110421 (rev. 172818) and with openSUSE's 4.6.0 20110427 (Rev. 173021). However, it works with 4.7. Valgrind shows: ==10880== Invalid read of size 4 ==10880== at 0x5A3453: gfc_get_nodesc_array_type (trans-types.c:1433) ==10880== by 0x5A59D7: gfc_sym_type (trans-types.c:1977) ==10880== by 0x5A5164: gfc_get_function_type (trans-types.c:2575) ==10880== by 0x5A5B2A: gfc_get_ppc_type (trans-types.c:2136) ==10880== by 0x5A4CFF: gfc_get_derived_type (trans-types.c:2289) ==10880== by 0x5A5048: gfc_typenode_for_spec (trans-types.c:1060) (I think it could be a duplicate of PR 48588 (fixed Apr 19 for 4.7 and Apr 26 for 4.6). Or not - the program also fails with -fno-whole-file whereas PR 48588's example works with that option.)