https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100683

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Sorry I didn't use the right compiler. If I do so, I get

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=EXC_I386_GPFLT)
    frame #0: 0x0000000101443613 f951`splay_tree_min(sp=0x0000000100000001) at
splay-tree.c:501:11
   498    if (!n)
   499      return NULL;
   500  
-> 501    while (n->left)
   502      n = n->left;
   503  
   504    return n;
Target 0: (f951) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=EXC_I386_GPFLT)
  * frame #0: 0x0000000101443613 f951`splay_tree_min(sp=0x0000000100000001) at
splay-tree.c:501:11
    frame #1: 0x000000010002048e f951`gfc_constructor_first(base=<unavailable>)
at constructor.c:234:45
    frame #2: 0x00000001000064d3 f951`::expand_constructor(base=<unavailable>)
at array.c:1790:34
    frame #3: 0x0000000100008176 f951`gfc_expand_constructor(gfc_expr*, bool)
at array.c:1852:27
    frame #4: 0x00000001000080f5
f951`gfc_expand_constructor(e=0x0000000144505af0, fatal=<unavailable>) at
array.c:1875
    frame #5: 0x00000001000c339f f951`gfc_resolve_expr(gfc_expr*) (.part.0) at
resolve.c:7144:29
    frame #6: 0x00000001000435ea f951`::find_inquiry_ref(p=<unavailable>,
newp=0x00007ffeefbfe268) at expr.c:1778:20
    frame #7: 0x0000000100047056
f951`::simplify_ref_chain(ref=0x0000000144505ea0, type=0, p=0x00007ffeefbfe2a8)
at expr.c:2029:26
    frame #8: 0x00000001000464be f951`gfc_simplify_expr(gfc_expr*, int) at
expr.c:2268:31
    frame #9: 0x0000000100046e2d
f951`::simplify_parameter_variable(p=0x00000001445049b0, type=0) at
expr.c:2112:25
    frame #10: 0x0000000100046bd1 f951`gfc_simplify_expr(gfc_expr*, int) at
expr.c:2055:3
    frame #11: 0x00000001000b4c74 f951`gfc_match_varspec(gfc_expr*, int, bool,
bool) at primary.c:2421:22
    frame #12: 0x00000001000b6bf7
f951`gfc_match_rvalue(result=0x00007ffeefbfe598) at primary.c:3590:29
    frame #13: 0x0000000100080218 f951`::match_mult_operand(gfc_expr **) at
matchexp.c:157:24
    frame #14: 0x0000000100080200 f951`::match_mult_operand(gfc_expr **) at
matchexp.c:211
    frame #15: 0x0000000100080200
f951`::match_mult_operand(result=0x00007ffeefbfe660) at matchexp.c:267
    frame #16: 0x000000010008055d
f951`::match_add_operand(result=0x00007ffeefbfe6c8) at matchexp.c:356:26
    frame #17: 0x000000010008083e
f951`::match_level_2(result=0x00007ffeefbfe740) at matchexp.c:480:27
    frame #18: 0x0000000100080a1d
f951`::match_level_3(result=0x00007ffeefbfe7c0) at matchexp.c:551:21
    frame #19: 0x0000000100080b66 f951`::match_and_operand(gfc_expr **) at
matchexp.c:599:21
    frame #20: 0x0000000100080b5c 
> This test compiles under lldb.

f951`::match_and_operand(result=0x00007ffeefbfe840) at matchexp.c:693
    frame #21: 0x0000000100080d9d
f951`::match_or_operand(result=0x00007ffeefbfe8c0) at matchexp.c:722:25
    frame #22: 0x0000000100080ebd
f951`::match_equiv_operand(result=0x00007ffeefbfe940) at matchexp.c:765:24
    frame #23: 0x0000000100080fdd
f951`::match_level_5(result=0x00007ffeefbfe990) at matchexp.c:811:27
    frame #24: 0x0000000100080047
f951`gfc_match_expr(result=0x00007ffeefbfea28) at matchexp.c:870:21
    frame #25: 0x0000000100049368
f951`gfc_match_init_expr(result=0x00007ffeefbfeaa0) at expr.c:3130:22
    frame #26: 0x000000010003259b f951`gfc_match_data_decl() at decl.c:2884:28
    frame #27: 0x00000001000a3d12 f951`::decode_statement() at parse.c:65:15
    frame #28: 0x00000001000a3d0d f951`::decode_statement() at parse.c:376
    frame #29: 0x00000001000a9195 f951`next_statement() at parse.c:1321:27
    frame #30: 0x00000001000ab91c f951`parse_spec(gfc_statement) at
parse.c:3981:27
    frame #31: 0x00000001000aeaf4 f951`::parse_progunit(st=ST_NONE) at
parse.c:5918:19
    frame #32: 0x00000001000b06de f951`gfc_parse_file() at parse.c:6459:22
    frame #33: 0x00000001001052ac f951`gfc_be_parse_file() at f95-lang.c:212:18
    frame #34: 0x0000000100ec4df4 f951`::compile_file() at toplev.c:457:25
    frame #35: 0x000000010168c17f f951`toplev::main(int, char**) at
toplev.c:2203:24
    frame #36: 0x000000010168e411 f951`main(argc=2, argv=0x00007ffeefbff0c8) at
main.c:39:23

Reply via email to