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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmalcolm at gcc dot gnu.org

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
I'm able to reproduce the segfault with various builds up to and including
r244591, but it works from r244592 onwards.

Hence this would seem to be a dup of PR c++/78488.

The traceback was:

(gdb) bt
#0  0x00000000005f1261 in build_over_call (cand=cand@entry=0x1db33f0,
flags=<optimized out>, complain=<optimized out>, 
    complain@entry=3) at ../../src/gcc/cp/call.c:7900
#1  0x00000000005ec3bb in build_new_method_call_1 (complain=3,
complain@entry=-248443568, fn_p=0x0, flags=<optimized out>, 
    conversion_path=<optimized out>, args=0x7ffff131c1a0<error reading
variable: Cannot access memory at address 0x1000009e>, 
    fns=<optimized out>, instance=0x7ffff14995a0) at
../../src/gcc/cp/call.c:8778
#2  build_new_method_call (instance=instance@entry=0x7ffff14995a0,
fns=0x7ffff1310d50, 
    args=args@entry=0x7fffffffd850<error reading variable: Cannot access memory
at address 0x4>, conversion_path=<optimized out>, 
    flags=flags@entry=1, fn_p=fn_p@entry=0x0, complain=complain@entry=3) at
../../src/gcc/cp/call.c:8848
#3  0x00000000005ecf14 in build_special_member_call
(instance=instance@entry=0x7ffff14995a0, name=0x7ffff132c478, 
    args=args@entry=0x7fffffffd850<error reading variable: Cannot access memory
at address 0x4>, 
    binfo=binfo@entry=0x7ffff131c1a0, flags=flags@entry=1,
complain=complain@entry=3) at ../../src/gcc/cp/call.c:8379
#4  0x00000000006c6fa8 in expand_default_init (complain=3, flags=1,
init=<optimized out>, exp=0x7ffff14995a0, 
    true_exp=0x7ffff14995a0, binfo=<tree_binfo 0x7ffff131c1a0>) at
../../src/gcc/cp/init.c:1780
#5  expand_aggr_init_1 (binfo=<tree_binfo 0x7ffff131c1a0>,
true_exp=true_exp@entry=0x7ffff14995a0, exp=exp@entry=0x7ffff14995a0, 
    init=<optimized out>, init@entry=<tree 0x0>, flags=flags@entry=1,
complain=complain@entry=3) at ../../src/gcc/cp/init.c:1894
#6  0x00000000006c781d in build_aggr_init (exp=exp@entry=0x7ffff14995a0,
init=init@entry=0x0, flags=flags@entry=1, 
    complain=complain@entry=3) at ../../src/gcc/cp/init.c:1633
#7  0x00000000005ff1fd in build_aggr_init_full_exprs (flags=1, init=0x0,
decl=0x7ffff14995a0) at ../../src/gcc/cp/decl.c:6159
#8  check_initializer (decl=decl@entry=0x7ffff14995a0, init=0x0,
flags=flags@entry=1, cleanups=cleanups@entry=0x7fffffffd9b0)
    at ../../src/gcc/cp/decl.c:6307
#9  0x000000000060e6b6 in cp_finish_decl (decl=decl@entry=0x7ffff14995a0,
init=init@entry=<tree 0x0>, 
    init_const_expr_p=<optimized out>, asmspec_tree=<optimized out>,
asmspec_tree@entry=<tree 0x0>, flags=<optimized out>)
    at ../../src/gcc/cp/decl.c:7019
#10 0x000000000069f13d in cp_parser_init_declarator
(parser=parser@entry=0x7ffff7ffbbd0, 
    decl_specifiers=decl_specifiers@entry=0x7fffffffdb20,
checks=checks@entry=0x0, 
    function_definition_allowed_p=function_definition_allowed_p@entry=true,
member_p=member_p@entry=false, 
    declares_class_or_enum=<optimized out>,
function_definition_p=function_definition_p@entry=0x7fffffffdbb0, 
    maybe_range_for_decl=maybe_range_for_decl@entry=0x0,
init_loc=init_loc@entry=0x7fffffffdb04, 
    auto_result=auto_result@entry=0x7fffffffdc40) at
../../src/gcc/cp/parser.c:19339
#11 0x000000000069f8f8 in cp_parser_simple_declaration
(parser=parser@entry=0x7ffff7ffbbd0, function_definition_allowed_p=true, 
    maybe_range_for_decl=maybe_range_for_decl@entry=0x0) at
../../src/gcc/cp/parser.c:12765
#12 0x00000000006a03d9 in cp_parser_block_declaration
(parser=parser@entry=0x7ffff7ffbbd0, statement_p=statement_p@entry=false)
    at ../../src/gcc/cp/parser.c:12592
#13 0x00000000006a4929 in cp_parser_declaration (parser=0x7ffff7ffbbd0) at
../../src/gcc/cp/parser.c:12489
#14 0x00000000006a4d30 in cp_parser_declaration_seq_opt
(parser=parser@entry=0x7ffff7ffbbd0) at ../../src/gcc/cp/parser.c:12365
#15 0x00000000006a5060 in cp_parser_translation_unit (parser=0x7ffff7ffbbd0) at
../../src/gcc/cp/parser.c:4369
#16 c_parse_file () at ../../src/gcc/cp/parser.c:38313
#17 0x000000000077f986 in c_common_parse_file () at
../../src/gcc/c-family/c-opts.c:1098
#18 0x0000000000b4f44a in compile_file () at ../../src/gcc/toplev.c:463
#19 0x00000000005e3fb0 in do_compile () at ../../src/gcc/toplev.c:1983
#20 toplev::main (this=this@entry=0x7fffffffdf60, argc=argc@entry=13,
argv=argv@entry=0x7fffffffe068)
    at ../../src/gcc/toplev.c:2117
#21 0x00000000005e5d99 in main (argc=13, argv=0x7fffffffe068) at
../../src/gcc/main.c:39

Reply via email to