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

            Bug ID: 84835
           Summary: [8 Regression] ICE in add_method, at cp/class.c:996
           Product: gcc
           Version: 8.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 20170820 and 20170910 :


$ cat z1.cc
extern "C" { auto f = [](auto x) noexcept(noexcept(x)) { }; }


$ gcc-8-20170820 -c z1.cc
$
$ gcc-8-20180311 -c z1.cc
z1.cc:1:58: internal compiler error: in add_method, at cp/class.c:996
 extern "C" { auto f = [](auto x) noexcept(noexcept(x)) { }; }
                                                          ^
0x691ae0 add_method(tree_node*, tree_node*, bool)
        ../../gcc/cp/class.c:996
0x6fc1db maybe_add_lambda_conv_op(tree_node*)
        ../../gcc/cp/lambda.c:1195
0x739da3 cp_parser_lambda_expression
        ../../gcc/cp/parser.c:10199
0x739da3 cp_parser_primary_expression
        ../../gcc/cp/parser.c:5261
0x744382 cp_parser_postfix_expression
        ../../gcc/cp/parser.c:7030
0x74bc5a cp_parser_unary_expression
        ../../gcc/cp/parser.c:8322
0x72bac9 cp_parser_cast_expression
        ../../gcc/cp/parser.c:9090
0x72c1dd cp_parser_binary_expression
        ../../gcc/cp/parser.c:9191
0x72c960 cp_parser_assignment_expression
        ../../gcc/cp/parser.c:9486
0x72d723 cp_parser_constant_expression
        ../../gcc/cp/parser.c:9770
0x72db47 cp_parser_initializer_clause
        ../../gcc/cp/parser.c:21916
0x72fffb cp_parser_initializer
        ../../gcc/cp/parser.c:21856
0x74d8eb cp_parser_init_declarator
        ../../gcc/cp/parser.c:19677
0x74ee0f cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13057
0x74fba8 cp_parser_block_declaration
        ../../gcc/cp/parser.c:12883
0x7577ee cp_parser_declaration
        ../../gcc/cp/parser.c:12780
0x756356 cp_parser_declaration_seq_opt
        ../../gcc/cp/parser.c:12656
0x756d27 cp_parser_linkage_specification
        ../../gcc/cp/parser.c:13842
0x757824 cp_parser_declaration
        ../../gcc/cp/parser.c:12717
0x756356 cp_parser_declaration_seq_opt
        ../../gcc/cp/parser.c:12656

Reply via email to