From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A5E9D3858C2C; Fri, 26 May 2023 16:41:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5E9D3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685119311; bh=JD10hZyEcng+54SQzUWLH7wvrRpUibnC6XvnuqpfYFw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KA4qAASONQ8lj4SBaTe68bZYhBUcfSio9RX07c3ZiB6ZAHP+fHOQE3aARndjgNclN 6B6xO4EbzMvvR+4nIWWS3t8ceWdCT31yf7YVAASUbCiZ7Iy94f+UkpyyIVBCNAtKu9 BaVZf3x29vZIA/xuIrme+OymhBa9qJcpqTTirv6s= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/109994] Issue a diagnostic when a C++ file defines a macro that hides a keyword Date: Fri, 26 May 2023 16:41:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi 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: 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=3D109994 --- Comment #2 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #1) > There are definitly testcases in GCC's testsuite which does this all the > time. > #define int ... Yeah, it shouldn't be in -Wall, and it's not a required diagnostic for conformance. But it might be nice. Not a priority though.=