From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E4D73858C53; Thu, 29 Feb 2024 18:33:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E4D73858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709231632; bh=dX+Git29kqusQbHnGny2R1KpJd5kaLasR5UdMo/Qf/c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Nr5rD4zjK/UHe6SjTHWoEGGAH24o5ylXua6TTzx9JXS9KtM1jsjrEMFZPRfOOtPbW 0wqNrJEo/k4Gb31r96jqQz/dimf511DCQ8/duE4IC8CJeh0jzC/Kx/6qR5MvcxlVVh j/i4NA4NUq02qr3E/0uUiBaF6x/KkBg3JgMu96aU= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114141] ASSOCIATE and complex part ref when associate target is a function Date: Thu, 29 Feb 2024 18:33:51 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cc cf_reconfirmed_on 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=3D114141 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |pault at gcc dot gnu.org Last reconfirmed| |2024-02-29 --- Comment #10 from Paul Thomas --- (In reply to Jerry DeLisle from comment #9) > --- snip --- > > % gfcx -o z a.f90 > > a.f90:5:6: > >=20 > > 5 | x%im =3D 42 > > | 1 > > Error: 'x' at (1) associated to expression cannot be used in > > a variable definition context (assignment) > >=20 > > Mikael, thanks for the feedback. I'll see if I can fix > > the parentheses case this weekend. >=20 > This is definitely a 42 case, which is why I had three '?' in my reply. >=20 > And if you understand this, you are OK in my book. :) BTW Both nagfor and ifort compile the testcase without complaint. Your fix is closely related to my patch for not-yet-parsed function selecto= rs. Cheers Paul=