Hi,
this produces an error ("incompatible operand types ('char *' and 'int')") with clang but not with gcc:
char* c = (char*)((1) ? "i" :
1 == 1 ? "v" :
"r");
Furthermore, I wrote the attached script to use clang as a "drop-in replacement" for gcc (`make CC=script`). It removes switches clang doesn't understand and adds -fsyntax-only. Is something like this already included in the clang repo?
Thanks,
Nico
clang (369 Bytes)