From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 66BDB3858D33; Mon, 19 Feb 2024 17:34:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66BDB3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708364099; bh=4iGLwa7k1s1kxzlDr/D1mWRySPs4cGldmDKrkXGcf9g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=enXNdb/iaT7YbhFKhOtxgW09nDeYmsmyTNW+3a0Ni2wNaKUSZ73az1bDkZB6qMrCn XCG1RGejIH0djK+9x2HPnh4lFFwrdXOxv6J4ZabahfDd2zK3wk3Dk58i5Q+cq1lb92 ZIhsGqOx9dgPHC60Ns7XZVCx4wWsxzECq1HbasBs= From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/113997] Bogus 'Warning: Interface mismatch in global procedure' with C binding Date: Mon, 19 Feb 2024 17:34:59 +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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D113997 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- Can you provide a complete minimum example? It seems that your description conflicts with Fortran 2023, 19.2 Global identifiers. 1 ... entities with binding labels ... are global entities of a program. ... The name of ... external procedure with no binding label ... is a global identifier. ... A binding label of an entity of the program is a global identifier. 2 The global identifier of an entity shall not be the same as the global identifier of any other entity. Furthermore, a binding label shall not be the same = as the global identifier of any other global entity, ignoring differences in ca= se.=