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

            Bug ID: 93712
           Summary: [10 Regression] ICE in convert_like_real, at
                    cp/call.c:7466
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20191006 and 20191013 :


$ cat z1.cc
int f (int const (&)[])
  { return f({1, " "}); }


$ g++-10-20200209 -c z1.cc
z1.cc: In function 'int f(const int (&)[])':
z1.cc:2:22: internal compiler error: in convert_like_real, at cp/call.c:7466
    2 |   { return f({1, " "}); }
      |                      ^
0x678e40 convert_like_real
        ../../gcc/cp/call.c:7466
0x67735f convert_like_real
        ../../gcc/cp/call.c:7344
0x6771e6 convert_like_real
        ../../gcc/cp/call.c:7578
0x6798b8 build_over_call
        ../../gcc/cp/call.c:8736
0x67d26a build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ../../gcc/cp/call.c:4587
0x8bb4cc finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ../../gcc/cp/semantics.c:2671
0x80a8e6 cp_parser_postfix_expression
        ../../gcc/cp/parser.c:7427
0x81457d cp_parser_unary_expression
        ../../gcc/cp/parser.c:8525
0x7e4f7f cp_parser_cast_expression
        ../../gcc/cp/parser.c:9416
0x7e5821 cp_parser_binary_expression
        ../../gcc/cp/parser.c:9518
0x7e74f0 cp_parser_assignment_expression
        ../../gcc/cp/parser.c:9822
0x7e7944 cp_parser_expression
        ../../gcc/cp/parser.c:9992
0x7fa625 cp_parser_jump_statement
        ../../gcc/cp/parser.c:13046
0x7fa625 cp_parser_statement
        ../../gcc/cp/parser.c:11316
0x7fb758 cp_parser_statement_seq_opt
        ../../gcc/cp/parser.c:11789
0x7fb837 cp_parser_compound_statement
        ../../gcc/cp/parser.c:11739
0x8177b0 cp_parser_function_body
        ../../gcc/cp/parser.c:22984
0x8177b0 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/cp/parser.c:23035
0x81a296 cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:28882
0x81b05e cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.c:28798

Reply via email to