On 12/16/18 6:02 AM, Jan Engelhardt wrote: > Though illegal in standard C, clang does support the extension: > > 11:59 a4:~ > echo -en 'int main() { void *x = &x; x = x + 1; }' | clang > -x c -c -o /dev/null - -Wall > 11:59 a4:~ > > (clang 6.0.1) > fra Sorry, I should have clarified: the source files in question are C++, not C. clang does indeed support the extension in C, but it's a strict error in C++ even with extern "C": $ echo -en 'int main() { void *x = &x; x = x + 1; }' | clang -x 'c++' - <stdin>:1:34: error: arithmetic on a pointer to void int main() { void *x = &x; x = x + 1; } ~ ^