------- Comment #15 from jv244 at cam dot ac dot uk 2008-01-29 06:31 ------- the comment #10 test case is still broken, and reaching its 3rd anniversary soon. Just a back trace to the segfault:
1347 cons = cons->next; (gdb) bt #0 0x0000000000422cda in find_array_section (expr=0xf740f0, ref=0xf74c00) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/expr.c:1347 #1 0x00000000004233d4 in simplify_const_ref (p=0xf740f0) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/expr.c:1431 #2 0x0000000000423c1d in gfc_simplify_expr (p=0xf740f0, type=0) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/expr.c:1666 #3 0x0000000000423f0a in simplify_parameter_variable (p=0xf73d00, type=0) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/expr.c:1533 #4 0x000000000042508a in gfc_match_init_expr (result=0x7fff62ec25e0) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/expr.c:2328 #5 0x000000000041b440 in gfc_match_data_decl () at /data03/vondele/gcc_trunk/gcc/gcc/fortran/decl.c:1743 #6 0x000000000045097a in match_word (str=0x2aea48083980 "", subr=0x41a910 <gfc_match_data_decl>, old_locus=0x7fff62ec2660) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:64 #7 0x0000000000450f8e in decode_statement () at /data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:280 #8 0x0000000000452045 in next_statement () at /data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:652 #9 0x0000000000453444 in parse_spec (st=ST_DATA_DECL) at /data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:2163 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19925