upvote
Also, the spec says it’s undefined. But compiler authors can always special-case their own compilers.
reply
Clang/LLVM at least treats this as UB, not as implementation defined behaviour however according to an LLVM dev
reply