[cfe-dev] Fix the type of conditionals involving void*

Eli Friedman eli.friedman at gmail.com
Thu Feb 7 18:08:21 PST 2008


>From PR1989.

Simplified testcase:
struct a; int a() {0 ? (void*)1 : 0 ? 0 : (struct a*)0;}

crashes with clang -emit-llvm.

Patch okay?

-Eli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: conditionaltypefix.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080207/349a37a1/attachment.txt>


More information about the cfe-dev mailing list