From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A00E83857001; Tue, 18 Aug 2020 08:59:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A00E83857001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597741163; bh=nQsn8VZ10MM6ITiOTuaP0+vv5scwlfdwoehWQwd2meg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HcTIiNsZaxAwOXi2VP1iqEgEe8rECJjEV2nnNzv6oF+7+OHWPSlWUzb76t6rgfbw2 +8alTD2LSxQGZPNexHcrOrepFp0nCnOVMpbNlvx0QrVdkj3HwEQLxZk9M14opvaYpr aWnFVF2u7DiyHBZm0UYTEZjznWCS6dkBLm7wRBP0= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96668] [OpenMP] Re-mapping allocated but previously unallocated allocatable does not work Date: Tue, 18 Aug 2020 08:59:23 +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: 11.0 X-Bugzilla-Keywords: openmp, wrong-code 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: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 08:59:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96668 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cltang at gcc dot gnu.org --- Comment #1 from Tobias Burnus --- (In reply to Tobias Burnus from comment #0) > ! pointer: allegedly target is automatically mapped > ! without requiring an explicit mapping or even the always modifier > !$omp target !! map(always, tofrom: p1, p2, q1, q2) Namely: "If a list item in a map clause is an associated pointer and the pointer is not the base pointer of another list item in a map clause on the same construct, then it is treated as if its pointer target is implicitly mapped in the same clause. For the purposes of the map clause, the mapped pointer target is treated as if its base pointer is the associated pointer."=