This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71003] __extension__ silences pedwarn for "\e" in C but not in C++
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Aug 2017 15:03:47 +0000
- Subject: [Bug c++/71003] __extension__ silences pedwarn for "\e" in C but not in C++
- Auto-submitted: auto-generated
- References: <bug-71003-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71003
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-18
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. The manual says clearly that it should work so this is a G++ bug.
'-Wpedantic' does not cause warning messages for use of the alternate keywords
whose names begin and end with '__'. Pedantic warnings are also disabled in
the expression that follows __extension__.