From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C6A303858028; Mon, 12 Apr 2021 21:48:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6A303858028 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63797] Bogus ambiguous reference to 'sqrt' Date: Mon, 12 Apr 2021 21:48:26 +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: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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: priority 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 21:48:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63797 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 CC| |kargl at gcc dot gnu.org --- Comment #2 from kargl at gcc dot gnu.org --- (In reply to chrisonian from comment #1) > This bug is still present in versions 8.3.0, 9.3.0, 10.1.0=20 >=20 > The bug likely does not effect anyone that contributes code to GCC. Someday someone might look at this bug. Fortunately, there is a trivial work around, e.g., change the generic-name from 'sqrt' to 'root'. If one does this and then looks at the contents of mod2.mod, one see the only difference shown here. Perhaps, module.c needs to be fixed to record the generic interface. diff -u zxc1 zxc2 --- zxc1 2021-04-12 14:29:48.345332000 -0700 +++ zxc2 2021-04-12 14:30:04.774051000 -0700 @@ -4,7 +4,7 @@ () -(('pair' 'mod2' 2) ('root' 'mod2' 3 4)) +(('pair' 'mod2' 2) ('sqrt' '(intrinsic)' 3 4)) ()=