This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67777] unsigned wchar_t and signed wchar_t should cause compiler errors but do not.
- 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: Wed, 30 Sep 2015 09:00:48 +0000
- Subject: [Bug c++/67777] unsigned wchar_t and signed wchar_t should cause compiler errors but do not.
- Auto-submitted: auto-generated
- References: <bug-67777-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67777
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Trevor Hickey from comment #0)
> Why can we add signed/unsigned qualifiers to wchar_t?
It produces a type of the same size but with the opposite signedness, like
std::make_signed/std::make_unsigned.