From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD1EF3858427; Tue, 1 Nov 2022 03:21:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD1EF3858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667272914; bh=7jl8XOeDs+0Xuxzif3DwUmsD7ffLcUKHzxwW31svGD4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UW0mXJDgfWiT5Kvp9wiSiTgFU03glWBU24F342snqSIAxBUgnGeQNRHa5WDsxkPpe bXeahQk4wgEyae1onbM/FaDNLvmSPst94iTqr8zwf44DtzGBhuvZSEArRYU/AdGAsT ZLAEcizlPedqMaOJH48qm1RUh4zfpBGsDBOhCu6g= From: "vincent-gcc at vinc17 dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105499] inconsistency between -Werror=c++-compat and g++ in __extension__ block Date: Tue, 01 Nov 2022 03:21:53 +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: 11.3.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-gcc at vinc17 dot net 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=3D105499 --- Comment #8 from Vincent Lef=C3=A8vre --- It is bad that __extension__ does two completely different things: 1. Disable warnings associated with GNU extensions, like ({ ... }). 2. Disable compatibility warnings that do not correspond to GNU extensions, like invalid conversions in C++.=