From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1FEE3858034; Wed, 29 Nov 2023 20:17:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1FEE3858034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701289035; bh=5hqjSff2d74wNRUjXvedRnB5SeQdzvO2A+B7Bu1WGRo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PCemoIFm8IApxQZWgt8JZrz87D4oQPuxvAqjmOSbpLI/Vp0OD2VxYt/UkuEWy8eW9 frsc021EK/MQ0E0G/I0yfOOu7zj6M+k6UhMOcNNheel7CayCa4GzM54qYB5UOD6JLS wVYMBW9ayrNNlCCjOIx2PKPqCxBoZkSMU5hJukzE= From: "mscfd at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/112764] Associating entity does not have target attribute if selector has pointer attribute in associate block Date: Wed, 29 Nov 2023 20:17:15 +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.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mscfd at gmx dot net X-Bugzilla-Status: NEW 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=3D112764 --- Comment #4 from martin --- (In reply to anlauf from comment #1) > Confirmed. >=20 > F2018:11.1.3.3 has: >=20 > "The associating entity does not have the ALLOCATABLE or POINTER attribut= es; > it has the TARGET attribute if and only if the selector is a variable and= has > either the TARGET or POINTER attribute." I was not sure, whether this formulation also covers array sections. Anyway, thanks for the fast reply!=