[Bug c++/29105] [4.2 Regression] segfault in add_candidates

tbm at cyrius dot com gcc-bugzilla@gcc.gnu.org
Sat Sep 16 11:56:00 GMT 2006



------- Comment #1 from tbm at cyrius dot com  2006-09-16 11:55 -------
Program received signal SIGSEGV, Segmentation fault.
add_candidates (fns=0x2aaaadd4ba20, args=0x0, explicit_targs=0x2aaaafad4b70,
template_only=1 '\001',
    conversion_path=0x0, access_path=0x0, flags=3, candidates=0x7fffffc849e8)
    at gcc-4.2/gcc/cp/call.c:3615
3615                non_static_args = tree_cons (NULL_TREE,
(gdb) where
#0  add_candidates (fns=0x2aaaadd4ba20, args=0x0,
explicit_targs=0x2aaaafad4b70,
    template_only=1 '\001', conversion_path=0x0, access_path=0x0, flags=3,
candidates=0x7fffffc849e8)
    at gcc-4.2/gcc/cp/call.c:3615
#1  0x000000000040ebe4 in perform_overload_resolution (fn=0x2aaaadd4ba20,
args=0x0,
    candidates=0x7fffffc849e8, any_viable_p=0x7fffffc849f7 "\001▒⬯▒*")
    at gcc-4.2/gcc/cp/call.c:2765
#2  0x000000000040efe8 in build_new_function_call (fn=0x2aaaaface2d0, args=0x0,
    koenig_p=<value optimized out>) at gcc-4.2/gcc/cp/call.c:2813
#3  0x00000000004d67cf in finish_call_expr (fn=0x2aaaaface2d0, args=0x0,
disallow_virtual=0 '\0',
    koenig_p=112 'p') at gcc-4.2/gcc/cp/semantics.c:1843
#4  0x0000000000495573 in cp_parser_unary_expression (parser=0x2aaaaaf91be0,
    address_p=<value optimized out>, cast_p=0 '\0') at
gcc-4.2/gcc/cp/parser.c:4341
#5  0x000000000049632e in cp_parser_assignment_expression
(parser=0x2aaaaaf91be0,
    cast_p=<value optimized out>) at gcc-4.2/gcc/cp/parser.c:5606
#6  0x0000000000496e6b in cp_parser_expression (parser=0x2aaaaaf91be0,
cast_p=<value optimized out>)
    at gcc-4.2/gcc/cp/parser.c:5898
#7  0x000000000049775a in cp_parser_expression_statement
(parser=0x2aaaaaf91be0,
    in_statement_expr=0x0) at gcc-4.2/gcc/cp/parser.c:6331
#8  0x0000000000493664 in cp_parser_statement (parser=0x2aaaaaf91be0,
in_statement_expr=0x0,
    in_compound=1 '\001') at gcc-4.2/gcc/cp/parser.c:6210
#9  0x00000000004943c3 in cp_parser_statement_seq_opt (parser=0x2aaaaaf91be0,
in_statement_expr=0x0)
    at gcc-4.2/gcc/cp/parser.c:6398
#10 0x000000000049455c in cp_parser_compound_statement (parser=0x2aaaaaf91be0,
    in_statement_expr=0x0, in_try=<value optimized out>)
    at gcc-4.2/gcc/cp/parser.c:6368
#11 0x00000000004a3807 in cp_parser_ctor_initializer_opt_and_function_body
(parser=0x2aaaaaf91be0)
    at gcc-4.2/gcc/cp/parser.c:12501
#12 0x00000000004a3d58 in cp_parser_function_definition_after_declarator
(parser=0x2aaaaaf91be0,
    inline_p=1 '\001') at gcc-4.2/gcc/cp/parser.c:15422
#13 0x0000000000492636 in cp_parser_type_specifier (parser=0x2aaaaaf91be0,
    flags=<value optimized out>, decl_specs=0x7fffffc84e70, is_declaration=1
'\001',
    declares_class_or_enum=0x7fffffc84e10, is_cv_qualifier=<value optimized
out>)
    at gcc-4.2/gcc/cp/parser.c:15912
#14 0x0000000000492a2d in cp_parser_decl_specifier_seq (parser=0x2aaaaaf91be0,
    flags=CP_PARSER_FLAGS_OPTIONAL, decl_specs=0x7fffffc84e70,
declares_class_or_enum=0x7fffffc84ec8)
    at gcc-4.2/gcc/cp/parser.c:7537
#15 0x00000000004a4573 in cp_parser_single_declaration (parser=0x2aaaaaf91be0,
checks=0x0,
    member_p=0 '\0', friend_p=0x7fffffc84f27 "") at
gcc-4.2/gcc/cp/parser.c:15596
#16 0x0000000000490943 in cp_parser_template_declaration_after_export
(parser=0x2aaaaaf91be0,
    member_p=112 'p') at gcc-4.2/gcc/cp/parser.c:15511
#17 0x00000000004a51cd in cp_parser_declaration (parser=0x2aaaaaf91be0)
    at gcc-4.2/gcc/cp/parser.c:7092
#18 0x00000000004a5826 in cp_parser_declaration_seq_opt (parser=0x2aaaaaf91be0)
    at gcc-4.2/gcc/cp/parser.c:7015
#19 0x00000000004a526f in cp_parser_declaration (parser=0x2aaaaaf91be0)
    at gcc-4.2/gcc/cp/parser.c:10527
#20 0x00000000004a5826 in cp_parser_declaration_seq_opt (parser=0x2aaaaaf91be0)
    at gcc-4.2/gcc/cp/parser.c:7015
#21 0x00000000004a5f4a in c_parse_file () at gcc-4.2/gcc/cp/parser.c:2751
#22 0x0000000000534435 in c_common_parse_file (set_yydebug=<value optimized
out>)
    at gcc-4.2/gcc/c-opts.c:1164
#23 0x0000000000874ab3 in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
    at gcc-4.2/gcc/toplev.c:1033
#24 0x00002aaaaabdf4ca in __libc_start_main () from /lib/libc.so.6
#25 0x000000000040273a in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29105



More information about the Gcc-bugs mailing list