public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/97958] New: ICE in build2, at tree.c:4868
@ 2020-11-23 16:44 gscfq@t-online.de
  2020-11-23 17:43 ` [Bug c/97958] " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gscfq@t-online.de @ 2020-11-23 16:44 UTC (permalink / raw)
  To: gcc-bugs

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: gscfq@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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-09-11 14:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23 16:44 [Bug c/97958] New: ICE in build2, at tree.c:4868 gscfq@t-online.de
2020-11-23 17:43 ` [Bug c/97958] " jakub at gcc dot gnu.org
2020-11-24  8:07 ` cvs-commit at gcc dot gnu.org
2020-11-24  8:16 ` rguenth at gcc dot gnu.org
2020-11-24  8:21 ` jakub at gcc dot gnu.org
2020-11-25 11:56 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:30 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:49 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:08 ` jakub at gcc dot gnu.org
2021-09-11 14:20 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).