From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0956D3858281; Thu, 30 Nov 2023 12:38:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0956D3858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701347931; bh=HMrFwtlX4h/2cipA13oR3t96GQ8itu7qUdwYinPVgSQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FFbVS+ENrPthzgXb7l/zxg+dbq9xyBf488uhRyIse5hKxRIcFdK7KbazeXRXaM2eT SZr71ntfq+i3n45MEYJU8SNy7oNoRuGS6iIW/AiFm+q0nKxYgK8xUqVHKjKhPv9GF5 XBhJfCfZvQDjzPAD8aszB3QAwOOts7WXaAM/5zIk= From: "cvs-commit at gcc dot gnu.org" 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: Thu, 30 Nov 2023 12:38:50 +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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: anlauf 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 #7 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:951a3e3749a9bf15cea3940ad4bd76d696e1b0b6 commit r14-6011-g951a3e3749a9bf15cea3940ad4bd76d696e1b0b6 Author: Harald Anlauf Date: Wed Nov 29 21:47:24 2023 +0100 Fortran: fix TARGET attribute of associating entity in ASSOCIATE [PR112= 764] The associating entity in an ASSOCIATE construct has the TARGET attribu= te if and only if the selector is a variable and has either the TARGET or POINTER attribute (e.g. F2018:11.1.3.3). gcc/fortran/ChangeLog: PR fortran/112764 * primary.cc (gfc_variable_attr): Set TARGET attribute of associating entity dependent on TARGET or POINTER attribute of selector. gcc/testsuite/ChangeLog: PR fortran/112764 * gfortran.dg/associate_62.f90: New test.=