This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69523] -Wliteral-suffix should not warn within namespace std
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Jan 2016 11:33:21 +0000
- Subject: [Bug c++/69523] -Wliteral-suffix should not warn within namespace std
- Auto-submitted: auto-generated
- References: <bug-69523-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69523
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> Not sure how namespace std should be special then though.
Suffixes that don't start without underscore are reserved, but so are all names
in namespace std. It's reasonable to assume that std::operator""s is part of
the implementation and so is allowed to use a reserved name.
So I can see an argument for not treating this like other warnings that would
typically need to be disabled in system headers.