From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE8EF3858C98; Sun, 31 Dec 2023 12:43:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE8EF3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704026627; bh=tu3O3QryMT569GR6t5fHr9VKRwrCQlwxE5Vnzac5ii8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JhJe/5kXAG/zdkS9gUBJfrwSi460Czx5lwEBBSkjj5zHAmxbJZQLXlRdTGv3gCU3F raddUlJhbc3fCjEqFQLqOz80gSekwOlLTgfYuhSc215EQ6MS2ts0we5fgAxdaKLyVE ZZ5TpXg3KZNxil3OlRIUxylBez2hpy3w+0IqIXME= From: "y.koj.eel at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86440] -Wignored-qualifiers diagnostic highlights wrong token with pointer Date: Sun, 31 Dec 2023 12:43:47 +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: 8.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: y.koj.eel at gmail dot com 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: 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=3D86440 --- Comment #4 from Yohei Kojima --- Also, -Wignored-qualifiers messages disappeared with g++ compiling b.c. Probably it is a bug caused by the same reason as this bug. $ g++ -c -Wall -Wextra -Wignored-qualifiers b.c b.c: In function 'void g(void* const (*)())': b.c:4:22: warning: unused parameter 'h' [-Wunused-parameter] 4 | void g(void *const (*h)(void)) { | ~~~~~~~~~~~~~~^~~~~~~~=