http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47601
--- Comment #22 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-05-28 16:38:18 UTC --- If I did not do any mistake, the patch in comment #21 fixes this PR (AFAICT), but cause the following regression (on x86_64-apple-darwin10 with -m32): [macbook] f90/bug% gfc /opt/gcc/work/gcc/testsuite/gfortran.dg/typebound_proc_12.f90 f951: internal compiler error: Segmentation fault The backtrace is Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00000000000000a8 gfc_find_component (sym=<value temporarily unavailable, due to optimizations>, name=0x7fff5fbfcda0 "e", noaccess=0 '\0', silent=0 '\0') at ../../work/gcc/fortran/symbol.c:2004 2004 for (p = sym->components; p; p = p->next) (gdb) bt #0 gfc_find_component (sym=<value temporarily unavailable, due to optimizations>, name=0x7fff5fbfcda0 "e", noaccess=0 '\0', silent=0 '\0') at ../../work/gcc/fortran/symbol.c:2004 #1 0x0000000100072378 in gfc_match_varspec (primary=0x141d19c00, equiv_flag=<value temporarily unavailable, due to optimizations>, sub_flag=0 '\0', ppc_arg=1 '\001') at ../../work/gcc/fortran/primary.c:1913