From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49D2A385B53D; Thu, 30 Nov 2023 21:21:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49D2A385B53D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701379304; bh=xtfycnjjBtvaryrD75LmRAKyUEM02xhB1XZZhqML7bc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UX2BbZMNCJKkeKIctmLVDu0LhZPZHS7asyW1RyKVFyeaq3hDQPo9dOqsBbKd7Qbj3 1ZZ+q9wUrhzpUJey6dGBArATXEkzCeuXWA3aASy7PSpxQSvnHLBVCxrbTpoR5y9klH E/jgFIcVkqB517LJPYg0de8wDwdQMASbtyaFRhag= 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 21:21:44 +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 #8 from GCC Commits --- The releases/gcc-13 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:dd5d399fc16ebe7a1a2b13ae8cb888d619af695c commit r13-8110-gdd5d399fc16ebe7a1a2b13ae8cb888d619af695c 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. (cherry picked from commit 951a3e3749a9bf15cea3940ad4bd76d696e1b0b6)=