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

            Bug ID: 103587
           Summary: [10/11/12 Regression] ICE in c_parser_consume_token,
                    at c/c-parser.c:850
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started between 20191110 and 20191117 :


$ cat z1.c
[[abc(
#pragma omp simd


$ gcc-10-20191110 -c z1.c -fopenmp
z1.c:1:1: error: expected identifier or '(' before '[' token
    1 | [[abc(
      | ^


$ gcc-12-20211205 -c z1.c -fopenmp
z1.c:2:9: internal compiler error: in c_parser_consume_token, at
c/c-parser.c:850
    2 | #pragma omp simd
      |         ^~~
0x78afa7 c_parser_consume_token(c_parser*)
        ../../gcc/c/c-parser.c:850
0x78c55f c_parser_balanced_token_sequence
        ../../gcc/c/c-parser.c:4850
0x79e41f c_parser_std_attribute
        ../../gcc/c/c-parser.c:4956
0x79e41f c_parser_std_attribute_specifier
        ../../gcc/c/c-parser.c:4998
0x79e529 c_parser_std_attribute_specifier_sequence
        ../../gcc/c/c-parser.c:5114
0x7955ce c_parser_declspecs(c_parser*, c_declspecs*, bool, bool, bool, bool,
bool, bool, bool, c_lookahead_kind)
        ../../gcc/c/c-parser.c:2826
0x7b0669 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:1997
0x7b930f c_parser_external_declaration
        ../../gcc/c/c-parser.c:1779
0x7b9c3b c_parser_translation_unit
        ../../gcc/c/c-parser.c:1652
0x7b9c3b c_parse_file()
        ../../gcc/c/c-parser.c:23279
0x80b0e2 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1238

Reply via email to