Is the following supposed to be legal or not legal?
static char const x[4] = "foo\0";
Yes, I understand the compiler is nice enough to do that for me with:
static char const x[] = "foo";
but because I am using a code generator that spits out other embedded NUL
bytes and offsets into this character array, it is simply more convenient
to insert my own NUL byte and tell the compiler exactly how many bytes to
allocate for the thing. All is fine with "C", but I'm having problems
with C++. Thank you!!