From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 250153858C5F; Thu, 5 Oct 2023 18:12:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 250153858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696529575; bh=hevElJdZaMUsneBCyeNX+As0MHZT35Sqy8DfruBjgCY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fSuxaxVqRVwURt/PIqMvb7XxoseP6xxVXAxe8/QahHFRyzYU8nQ+wzQ8SbGrtYEXs SXieVjy8MuEGEnv0xRjqqxdsqTQ5ANp6I7UE0WOouVPVmLEWX6r57DhbURdwrR4O/H 85TuGRtYC8atUKte90Db7zZ1j/kSKrt0X1mkXdCA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111708] Calling external global function instead of local static function. Date: Thu, 05 Oct 2023 18:12:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 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=3D111708 --- Comment #2 from Andrew Pinski --- Note ICC rejects this as invalid: ``` (14): error #172: external/internal linkage conflict with previous declaration at line 10 int f(int); ^ ``` Which is what I had expected to happen similar to variables as PR 90472 rej= ects variable declarations too.=