https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107768
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #1 0x000000000106a451 in maybe_warn_zero_as_null_pointer_constant (expr=<non_lvalue_expr 0x7ffff6e36420>, loc=16802880) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/tree.cc:6247 #2 0x0000000000c5b243 in conversion_null_warnings (totype=<pointer_type 0x7ffff6de8f18>, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9300 __ct_comp >, argnum=0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8013 #3 0x0000000000c5c0df in convert_like_internal (convs=0x4c264b0, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9300 __ct_comp >, argnum=0, issue_conversion_warnings=true, c_cast_p=false, nested_p=false, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8234 #4 0x0000000000c5e811 in convert_like (convs=0x4c264b0, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9300 __ct_comp >, argnum=0, issue_conversion_warnings=true, c_cast_p=false, nested_p=false, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8762 #5 0x0000000000c5e8cc in convert_like_with_context (convs=0x4c264b0, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9300 __ct_comp >, argnum=0, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8788 #6 0x0000000000c6375f in build_over_call (cand=0x4c264e0, flags=17, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:9936 #7 0x0000000000c5c7b5 in convert_like_internal (convs=0x4c26610, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9b00 operator==>, argnum=1, issue_conversion_warnings=true, c_cast_p=false, nested_p=false, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8302 #8 0x0000000000c5e811 in convert_like (convs=0x4c26610, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9b00 operator==>, argnum=1, issue_conversion_warnings=true, c_cast_p=false, nested_p=false, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8762 #9 0x0000000000c5e8cc in convert_like_with_context (convs=0x4c26610, expr=<non_lvalue_expr 0x7ffff6e36420>, fn=<function_decl 0x7ffff6dd9b00 operator==>, argnum=1, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:8788 #10 0x0000000000c6375f in build_over_call (cand=0x4c26640, flags=1, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:9936 #11 0x0000000000c5737f in build_new_op (loc=..., code=EQ_EXPR, flags=1, arg1=<view_convert_expr 0x7ffff6e36400>, arg2=<non_lvalue_expr 0x7ffff6e36420>, arg3=<tree 0x0>, lookups=<tree 0x0>, overload=0x7fffffffcf18, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/call.cc:6986 #12 0x000000000108fc84 in build_x_binary_op (loc=..., code=EQ_EXPR, arg1=<view_convert_expr 0x7ffff6e36400>, arg1_code=ERROR_MARK, arg2=<non_lvalue_expr 0x7ffff6e36420>, arg2_code=ERROR_MARK, lookups=<tree 0x0>, overload_p=0x7fffffffcfb8, complain=3) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/typeck.cc:4722 #13 0x0000000000ee2dde in cp_parser_binary_expression (parser=0x7ffff7274be0, cast_p=false, no_toplevel_fold_p=false, decltype_p=false, prec=PREC_NOT_OPERATOR, pidk=0x0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:10280 #14 0x0000000000ee337a in cp_parser_assignment_expression (parser=0x7ffff7274be0, pidk=0x0, cast_p=false, decltype_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:10441 #15 0x0000000000ee3704 in cp_parser_expression (parser=0x7ffff7274be0, pidk=0x0, cast_p=false, decltype_p=false, warn_comma_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:10611 #16 0x0000000000eedaea in cp_parser_jump_statement (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:14356 #17 0x0000000000ee8970 in cp_parser_statement (parser=0x7ffff7274be0, in_statement_expr=<tree 0x0>, in_compound=true, if_p=0x0, chain=0x0, loc_after_labels=0x0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:12332 #18 0x0000000000ee9c92 in cp_parser_statement_seq_opt (parser=0x7ffff7274be0, in_statement_expr=<tree 0x0>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:12906 #19 0x0000000000ee9b74 in cp_parser_compound_statement (parser=0x7ffff7274be0, in_statement_expr=<tree 0x0>, bcs_flags=0, function_body=true) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:12858 #20 0x0000000000f0464c in cp_parser_function_body (parser=0x7ffff7274be0, in_function_try_block=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:25241 #21 0x0000000000f04970 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x7ffff7274be0, in_function_try_block=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:25292 #22 0x0000000000f12fff in cp_parser_function_definition_after_declarator (parser=0x7ffff7274be0, inline_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:31902 #23 0x0000000000f12e10 in cp_parser_function_definition_from_specifiers_and_declarator (parser=0x7ffff7274be0, decl_specifiers=0x7fffffffd7f0, attributes=<tree_list 0x7ffff6e2feb0>, declarator=0x4c16450) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:31819 #24 0x0000000000efebc5 in cp_parser_init_declarator (parser=0x7ffff7274be0, flags=0, decl_specifiers=0x7fffffffd7f0, checks=0x0, function_definition_allowed_p=true, member_p=false, declares_class_or_enum=0, function_definition_p=0x7fffffffd779, maybe_range_for_decl=0x0, init_loc=0x7fffffffd780, auto_result=0x7fffffffd788) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22693 #25 0x0000000000eefdd6 in cp_parser_simple_declaration (parser=0x7ffff7274be0, function_definition_allowed_p=true, maybe_range_for_decl=0x0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:15341 #26 0x0000000000eef8cf in cp_parser_block_declaration (parser=0x7ffff7274be0, statement_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:15161 #27 0x0000000000eef51d in cp_parser_declaration (parser=0x7ffff7274be0, prefix_attrs=<tree 0x0>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:15027 #28 0x0000000000eef5e9 in cp_parser_toplevel_declaration (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:15048 #29 0x0000000000eeeaef in cp_parser_declaration_seq_opt (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:14799 #30 0x0000000000efbf28 in cp_parser_namespace_body (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:21498 #31 0x0000000000efbebd in cp_parser_namespace_definition (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:21476 #32 0x0000000000eef3f6 in cp_parser_declaration (parser=0x7ffff7274be0, prefix_attrs=<tree 0x0>) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:15007 #33 0x0000000000eef5e9 in cp_parser_toplevel_declaration (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:15048 #34 0x0000000000ed74fc in cp_parser_translation_unit (parser=0x7ffff7274be0) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:5090 #35 0x0000000000f4e06b in c_parse_file () at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:49349 #36 0x000000000115200a in c_common_parse_file () at /home/apinski/src/upstream-gcc/gcc/gcc/c-family/c-opts.cc:1248 #37 0x000000000197da00 in compile_file () at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:444 #38 0x0000000001980acd in do_compile (no_backend=false) at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:2125 #39 0x0000000001980eb5 in toplev::main (this=0x7fffffffdd62, argc=5, argv=0x7fffffffde68) at /home/apinski/src/upstream-gcc/gcc/gcc/toplev.cc:2277 #40 0x0000000003293c49 in main (argc=5, argv=0x7fffffffde68) at /home/apinski/src/upstream-gcc/gcc/gcc/main.cc:39