From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30AD53858423; Fri, 4 Nov 2022 11:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30AD53858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667562129; bh=cF4ljhgmaPJmPMEuggexWEknOjYzx+tIKZx70aQkFro=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hL94hx5Ym/8WnLQFzGzTtRn8QSU4tCg59ZlY6iofJ6744Lvf4B3WVDxOE3kovIubl xo2tGLL0fdWcUWWucRxDJfVA02N1f4Ct20Ut5JZAK6Alv1+TFmnfBcatylsj1wya9l nx9w/+lIQORpXy+pe7dUCE/MQnumA9K0wPxVHvDA= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/69090] Allocatable arrays mishandled in 'omp declare target' Date: Fri, 04 Nov 2022 11:42:08 +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: unknown X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: WAITING 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=3D69090 --- Comment #9 from Tobias Burnus --- (In reply to Thomas Schwinge from comment #8) > Has this been fixed via PR96668 "[OpenMP] Re-mapping allocated but > previously unallocated allocatable does not work", by chance? (Tobias?) I think both examples should work since that commit went into GCC 11 (untes= ted, however). (It is clear why the example in comment 0 did not work back then (2015), but the one in comment 7 is unclear as no GCC version was mentioned; if it was mainline it should work (GCC 11), if it was a release branch, the fail is understandable.) NOTE: While the fix for PR96668 handles previously unallocated arrays, the OpenMP specification since 5.1 (or rather already TR 9) clarified that the 'always' modifier is required. This requirement might go away in OpenMP 6.0, but even TR11 still has it. NOTE 2: PR96668 is not yet closed as scalar allocatables are not handled, y= et. (But both examples in this PR use arrays.)=