[Bug c++/59873] The value of char32_t U'\u0000' and char16_t u'\u000' is 1, instead of 0.

wjl at icecavern dot net gcc-bugzilla@gcc.gnu.org
Mon Jan 20 00:19:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59873

--- Comment #9 from Wesley J. Landaker <wjl at icecavern dot net> ---
This also happens in strings, e.g.:

static_assert(U"\u0000"[0] == 1, "this passes");
static_assert(U"\u0000"[0] == 0, "this fails");



More information about the Gcc-bugs mailing list