public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/106982] New: [OpenACC] ICE incorrect sharing of tree nodes with nested reduction / .GOACC_REDUCTION
@ 2022-09-20 17:07 burnus at gcc dot gnu.org
  2022-09-21  7:49 ` [Bug middle-end/106982] [10/11/12/13 Regression][OpenACC] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-09-20 17:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106982
           Summary: [OpenACC] ICE incorrect sharing of tree nodes with
                    nested reduction / .GOACC_REDUCTION
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openacc
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: tschwinge at gcc dot gnu.org
  Target Milestone: ---

ICE with gcc/g++ -fopenacc:

share10.i:6:9: error: incorrect sharing of tree nodes
    6 | #pragma acc loop worker reduction(*:reduced)
      |         ^~~
MEM <double[5]> [(double *)&reduced]
MEM <double[5]> [(double *)&reduced] = .GOACC_REDUCTION (SETUP, 0, MEM
<double[5]> [(double *)&reduced], -1, 73, 0);
share10.i:6:9: error: incorrect sharing of tree nodes

----------- Failing code is -------------
int test1(double *c)
{
    double reduced[5];
#pragma acc parallel loop gang private(reduced)
    for (int x = 0; x < 5; ++x)
#pragma acc loop worker reduction(*:reduced)
      for (int y = 0; y < 5; ++y) { }
}

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

end of thread, other threads:[~2023-07-07 10:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 17:07 [Bug middle-end/106982] New: [OpenACC] ICE incorrect sharing of tree nodes with nested reduction / .GOACC_REDUCTION burnus at gcc dot gnu.org
2022-09-21  7:49 ` [Bug middle-end/106982] [10/11/12/13 Regression][OpenACC] " rguenth at gcc dot gnu.org
2022-09-23 18:17 ` burnus at gcc dot gnu.org
2022-09-26 10:45 ` cvs-commit at gcc dot gnu.org
2022-09-29 11:48 ` cvs-commit at gcc dot gnu.org
2022-12-22 14:38 ` [Bug middle-end/106982] [10/11 " rguenth at gcc dot gnu.org
2022-12-22 14:39 ` rguenth at gcc dot gnu.org
2023-07-07 10:43 ` [Bug middle-end/106982] [11 " rguenth 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).