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

            Bug ID: 97958
           Summary: ICE in build2, at tree.c:4868
           Product: gcc
           Version: 11.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 at least r5 :


$ cat z1.c
int f ()
{
  #pragma omp atomic
  f = f + 1;
}


$ gcc-11-20201122 -c z1.c -fopenmp
z1.c: In function 'f':
z1.c:4:3: internal compiler error: in build2, at tree.c:4868
    4 |   f = f + 1;
      |   ^
0xdaaf2d build2(tree_code, tree_node*, tree_node*, tree_node*)
        ../../gcc/tree.c:4867
0x674105 c_parser_binary_expression
        ../../gcc/c/c-parser.c:8010
0x674b15 c_parser_conditional_expression
        ../../gcc/c/c-parser.c:7607
0x675071 c_parser_expr_no_commas
        ../../gcc/c/c-parser.c:7522
0x67ffd0 c_parser_omp_atomic
        ../../gcc/c/c-parser.c:17677
0x69045c c_parser_omp_construct
        ../../gcc/c/c-parser.c:21546
0x66dd07 c_parser_pragma
        ../../gcc/c/c-parser.c:12517
0x688206 c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:5764
0x6885d3 c_parser_compound_statement
        ../../gcc/c/c-parser.c:5606
0x689e61 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2543
0x690a47 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1777
0x691569 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1650
0x691569 c_parse_file()
        ../../gcc/c/c-parser.c:21882
0x6e0772 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1198

Reply via email to