This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69523] -Wliteral-suffix should not warn within namespace std


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]