https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66946
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Comment on attachment 36021 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36021 minimal example written == ((wchar_t) 0xfffd) Will ever be true or is there some sign extending going on which causes this to be false for the default case?