@fay59 @whitequark its because the hex literal is truncated to a byte, and then that's your character ?????
Top-level
@fay59 @whitequark its because the hex literal is truncated to a byte, and then that's your character ????? 6 comments
@iximeow This is prohibited by the C++ standard, and GCC rejects if you pass "-pedantic -pedantic-errors". @iximeow In C this is... implementation-defined I think? https://cigix.me/c17#6.4.5.p6 (last sentence) and https://cigix.me/c17#6.4.4.4.p6 @iximeow @whitequark ah. yes. that seems "logical" to me, because this is C. pardon my (slightly) gray hair. |
@fay59 @whitequark https://gcc.godbolt.org/z/baWvsao3n ???????????????