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

            Bug ID: 93684
           Summary: [8/9/10 Regression] ICE in cp_lexer_consume_token, at
                    cp/parser.c:1120
           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: ---

Affects versions down to r6 (no shorter example found) :

$ cat z1.cc
[[a::


$ g++-5 -c z1.cc
z1.cc:1:1: error: expected unqualified-id before '[' token
 [[a::
 ^
$
$ g++-10-20200209 -c z1.cc
z1.cc:1:4: internal compiler error: in cp_lexer_consume_token, at
cp/parser.c:1120
    1 | [[a::
      |    ^~
0x6e6097 cp_lexer_consume_token
        ../../gcc/cp/parser.c:1120
0x70ae60 cp_parser_std_attribute
        ../../gcc/cp/parser.c:26726
0x70ae60 cp_parser_std_attribute_list
        ../../gcc/cp/parser.c:26883
0x70ae60 cp_parser_std_attribute_spec
        ../../gcc/cp/parser.c:26969
0x70ae60 cp_parser_std_attribute_spec_seq
        ../../gcc/cp/parser.c:27062
0x6fe577 cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:14061
0x6fed11 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13557
0x721ff9 cp_parser_declaration
        ../../gcc/cp/parser.c:13377
0x722771 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4731
0x722771 c_parse_file()
        ../../gcc/cp/parser.c:43711
0x7e52d0 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1186

Reply via email to