[cfe-dev] clang bug
Nico Weber
nicolasweber at gmx.de
Thu Dec 13 03:43:56 PST 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang
Type: application/octet-stream
Size: 369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071213/4f9ab914/attachment.obj>
-------------- next part --------------
More information about the cfe-dev
mailing list