From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 293BA3858438; Thu, 2 Nov 2023 21:46:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 293BA3858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698961590; bh=Go69eB2qHu4XOWRdrTXPlcJxUrmplLQtMoGDa+bGobo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u4uVU5347Juxzq5rRADBWfAXBtRQolDT3m8cKczWcoWeCdUk2z1PVdi9MHbU5Wq2K CPvQyBsxAq02xWHBGCaqYw76NS3C1hcw1QL80X0zNHOgsy6v2QF25GTgnJ4mKYR1ik M8r9B8IxUc0qtSjJtBtjovJJ1B2ENnbTGU30zgQ0= From: "anlauf 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: Thu, 02 Nov 2023 21:46:29 +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: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc keywords 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97245 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ASSOCIATE intrinsic does |ASSOCIATED intrinsic does |not recognize a ponter |not recognize a pointer |variable the second time it |variable the second time it |is used |is used Keywords| |rejects-valid CC| |anlauf at gcc dot gnu.org --- Comment #2 from anlauf at gcc dot gnu.org --- Interesting bug. The code is accepted if the declaration PROCEDURE(proc_void), POINTER:: pADJSensib is moved into the subroutine. In the original form, -fdump-fortran-original shows the following: code: IF _gfortran_associated[[((formulaciones:padjsensib) ((arg not-present)= ))]] CALL padjsensib () ENDIF IF associated[((calculo:padjsensib))] CALL padjsensib () ENDIF This is weird.=