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

            Bug ID: 94153
           Summary: internal compiler error: in cp_lexer_new_from_tokens,
                    at cp/parser.c:700
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: v.barinov at samsung dot com
  Target Milestone: ---

Created attachment 48023
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48023&action=edit
reduced reprocase

parser-ice.ii:2:3: internal compiler error: in cp_lexer_new_from_tokens, at
cp/parser.c:700
    2 |   a < class {           b(  {
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
0x66471b cp_parser_push_lexer_for_tokens
        /mnt/gcc/gcc/cp/parser.c:700
0x9d8ec5 cp_parser_late_parsing_for_member
        /mnt/gcc/gcc/cp/parser.c:29776
0x9b73db cp_parser_class_specifier_1
        /mnt/gcc/gcc/cp/parser.c:24085
0x9b8383 cp_parser_class_specifier
        /mnt/gcc/gcc/cp/parser.c:24109
0x9b8383 cp_parser_type_specifier
        /mnt/gcc/gcc/cp/parser.c:17666
0x9b940b cp_parser_decl_specifier_seq
        /mnt/gcc/gcc/cp/parser.c:14314
0x9df435 cp_parser_single_declaration
        /mnt/gcc/gcc/cp/parser.c:29291
0x9df7bc cp_parser_template_declaration_after_parameters
        /mnt/gcc/gcc/cp/parser.c:28954
0x9dff10 cp_parser_explicit_template_declaration
        /mnt/gcc/gcc/cp/parser.c:29220
0x9e2fb9 cp_parser_declaration
        /mnt/gcc/gcc/cp/parser.c:13337
0x9e35ea cp_parser_translation_unit
        /mnt/gcc/gcc/cp/parser.c:4731
0x9e35ea c_parse_file()
        /mnt/gcc/gcc/cp/parser.c:43760
0xaf80ab c_common_parse_file()
        /mnt/gcc/gcc/c-family/c-opts.c:1186

Reply via email to