From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FFF33858D1E; Sat, 6 May 2023 17:24:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FFF33858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683393875; bh=LLf3J/yh+SHSpvxiPXq27UjozdRjsxklBohULCr12Ig=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IXPxkamsYJgUKLdrPUmVzHBv2jNca9E4WnfiLSet/S8q5YPnlV/9qtFdjSOpDN+9k 6E/nAQZhYQEeWi0zJEZTmMF5Bapi2RSujPqxPuWHt2GKBd0l9mPrzvA4qmc4UvZ3z1 wFC73Xsmp1DUKXji2Sa7nIBKxKjxgCiyCgxV7f9g= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109755] -Wunused-function underline points at a class, not the unused method itself Date: Sat, 06 May 2023 17:24:34 +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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cf_reconfirmed_on everconfirmed bug_status 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=3D109755 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-05-06 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- Confirmed, it is not just anonymous namespaces nor class methods.. Another example showing it happens with namespaces static functions too: ``` namespace g { static void f();} static void g::f(){} ```=