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++/67777] unsigned wchar_t and signed wchar_t should cause compiler errors but do not.


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.


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