From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 01ABF3858D33; Tue, 25 Apr 2023 12:49:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01ABF3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682426994; bh=8k40R1llxXlv6M3k7k6xy5Y3E2pWy4P5BBkt7zjpc0M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kSESOfr+90CSklMAD4b6jEV6NERfLDrQcPgybx4pLe0kCzxX3CfPu1K1bDYyoVA7d s30D/kLoBKnaPvfrav6ymSfdkISh2DP07XFRHZfR2CXC/dVEcmKqpXUqEyCdyb4e/0 2BEkhHrQCIjTxMhYeo2ief7iK1FBJyUdO6nRLzwU= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109622] internal compiler error: in omp_group_base, at gimplify.cc:9412 if -fopenacc is set. Date: Tue, 25 Apr 2023 12:49:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault 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: Message-ID: In-Reply-To: References: 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=3D109622 --- Comment #4 from Paul Thomas --- Hi Patrick, Confirmed on pre-release GNU Fortran (GCC) 13.0.1 20230414. The compiler is objecting to the dereferencing in the pragma call: while (1) { if (done) goto L.4; copy_transform (&atransform1, &atransform2); #pragma acc enter data map(attach:*atransform2->next [bias: 184]) map(attach_detach:atransform2->next [bias: 0]); if (atransform1->next !=3D 0B && atransform2->next !=3D 0B) { atransform1 =3D atransform1->next; atransform2 =3D atransform2->next; } else { done =3D 1; } L.5:; L.3:; } Compiles OK with GNU Fortran (GCC) 12.2.1 20230321 so I am marking as a regression. ifort compiles it OK with -qopenmp. It compiles fine is a non-pointer transform_t is passed. I am cc'ing Tobias, who at least knows a lot about the workings of OpenMP in gcc. Thanks for the report. Paul=