From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 41846385840F; Tue, 20 Sep 2022 17:07:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41846385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663693671; bh=loQKbC5hNLK0C+E1BysIdd45ZaRwdyVE9OTX1gTufUk=; h=From:To:Subject:Date:From; b=ptTf6IMafuIicBj8X+9H7JPfiKvpglvqZo7RShry3UL/kygSnQOS7bwingDmcXbNc 8+EqKR+rDCyfXIuud5ecv6ILjrM85UB9ySzIeJY8f6k6QmlqVsHnt+9744yefpWET9 pv5dcLBVjGsZ1PM3mL+RCvSZcT+C1FSK74eNq78w= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106982] New: [OpenACC] ICE incorrect sharing of tree nodes with nested reduction / .GOACC_REDUCTION Date: Tue, 20 Sep 2022 17:07:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106982 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 *)&reduced] MEM [(double *)&reduced] =3D .GOACC_REDUCTION (SETUP, 0, MEM [(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 =3D 0; x < 5; ++x) #pragma acc loop worker reduction(*:reduced) for (int y =3D 0; y < 5; ++y) { } }=