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

            Bug ID: 90842
           Summary: [8/9/10 Regression] ICE in in poplevel, at
                    cp/decl.c:585
           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: ---

Compiles with gcc-6 (points to the incorrect line) :


$ cat z1.cc
auto a = [](auto b)
struct c //
{ void d(); };


$ g++-10-20190609 -c z1.cc
z1.cc:3:10: internal compiler error: in poplevel, at cp/decl.c:585
    3 | { void d(); };
      |          ^
0x64499c poplevel(int, int, int)
        ../../gcc/cp/decl.c:584
0x6d1aa0 end_template_decl()
        ../../gcc/cp/pt.c:4501
0x694a76 finish_fully_implicit_template
        ../../gcc/cp/parser.c:41434
0x6cab62 cp_parser_member_declaration
        ../../gcc/cp/parser.c:24782
0x6a822a cp_parser_member_specification_opt
        ../../gcc/cp/parser.c:24247
0x6a822a cp_parser_class_specifier_1
        ../../gcc/cp/parser.c:23388
0x6a9e21 cp_parser_class_specifier
        ../../gcc/cp/parser.c:23650
0x6a9e21 cp_parser_type_specifier
        ../../gcc/cp/parser.c:17412
0x6aaa04 cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:14108
0x6c4387 cp_parser_lambda_declarator_opt
        ../../gcc/cp/parser.c:10873
0x6aef84 cp_parser_lambda_expression
        ../../gcc/cp/parser.c:10450
0x6afe78 cp_parser_primary_expression
        ../../gcc/cp/parser.c:5371
0x6b46f1 cp_parser_postfix_expression
        ../../gcc/cp/parser.c:7164
0x6c0aa5 cp_parser_unary_expression
        ../../gcc/cp/parser.c:8461
0x69e0ef cp_parser_cast_expression
        ../../gcc/cp/parser.c:9346
0x69e8c2 cp_parser_binary_expression
        ../../gcc/cp/parser.c:9448
0x69f639 cp_parser_assignment_expression
        ../../gcc/cp/parser.c:9745
0x69f02d cp_parser_constant_expression
        ../../gcc/cp/parser.c:10029
0x69f5e1 cp_parser_initializer_clause
        ../../gcc/cp/parser.c:22778
0x6a2bff cp_parser_initializer
        ../../gcc/cp/parser.c:22718

Reply via email to