From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DEAAF385840C; Tue, 26 Mar 2024 21:03:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEAAF385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711487019; bh=utnr+aYOI2Ruybqeho3/ifmiLpiV6IQ5UeLb0sl/l10=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xB0Zy8NxgqKOiZNTIfYqvraXxbjirwHCfocd5IVFoZVimQbIOE0MkhxQxkyx42ceL gdFSn9Og1qI1uLT6PNcHev8ng53ReZ4cTBsAGrxKu7fh+gWWRbNae2FG7Grltnyo0k c9Lm5oOmmEK4X1CpLjxxcduhX5qGoqaeiR6fvexU= From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114475] [14 Regression] Regression with iso_c_binding and submodules Date: Tue, 26 Mar 2024 21:03:34 +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: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: mikael at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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=3D114475 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mikael at gcc dot g= nu.org --- Comment #3 from Mikael Morin --- (In reply to anlauf from comment #2) > (In reply to J=C3=BCrgen Reuter from comment #1) > > I suspect this commit here, > > https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommit; > > h=3D44c0398e65347def316700911a51ca8b4ec0a411 > > but not totally certain. >=20 > The following patch fixes the apparent regression: >=20 > diff --git a/gcc/fortran/expr.cc b/gcc/fortran/expr.cc > index 9a042cd7040..68d16a9a378 100644 > --- a/gcc/fortran/expr.cc > +++ b/gcc/fortran/expr.cc > @@ -3517,6 +3563,7 @@ check_restricted (gfc_expr *e) > if (e->error > || sym->attr.in_common > || sym->attr.use_assoc > + || sym->attr.used_in_submodule > || sym->attr.dummy > || sym->attr.implied_index > || sym->attr.flavor =3D=3D FL_PARAMETER >=20 Yes, I was coming to the same fix. I'm not too sure about it though. >=20 > Looks like the commit actually uncovered a latent issue. >=20 > Mikael, do you want to follow up? Yes, this is mine in any case.=