From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C46B3858C00; Fri, 3 Nov 2023 21:11:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C46B3858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699045895; bh=lBDMFxnFz4GNeF0E4OllNvS8MiVbEX/p2FCQ1GmHjJ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DYpjIP2HzvGc0y/KKEPX7sy/x+05mkTJBlvoc73tmaVA1QGffKfFl2vHbpiFMbEJS APgeLo09PRx/PfWw0X5PuR0XI5XxzmbGq5y0mdTEp624iNR6TcrqXfNRJRZpd7mAwW jiMvJclX68jRWFjbYw/xvRwTEjYH6sh0YGePMEuQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97245] ASSOCIATED intrinsic does not recognize a pointer variable the second time it is used Date: Fri, 03 Nov 2023 21:11:35 +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: 10.2.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: P4 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=3D97245 --- Comment #5 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:5340f48b7639fcc874f64aac214f9ef9ae43d43e commit r14-5114-g5340f48b7639fcc874f64aac214f9ef9ae43d43e Author: Harald Anlauf Date: Fri Nov 3 19:41:54 2023 +0100 Fortran: fix issue with multiple references of a procedure pointer [PR97245] gcc/fortran/ChangeLog: PR fortran/97245 * match.cc (gfc_match_call): If a procedure pointer has already been resolved, do not create a new symbol in a procedure reference of the same name shadowing the first one if it is host-associated. gcc/testsuite/ChangeLog: PR fortran/97245 * gfortran.dg/proc_ptr_53.f90: New test.=