[cfe-commits] [Patch] Type-qualifiers on condtitional expression
Tim Northover
Tim.Northover at arm.com
Mon Apr 2 04:46:52 PDT 2012
Hi,
When doing something like this:
const int *CI;
int *I;
*(test ? I : CI) = 0
clang currently doesn't put the combined qualifiers on the output type, which
means that the assignment is allowed. I believe this patch implements correct
C99 semantics (and sane behaviour for non-CVR type qualifiers).
Could someone review it please?
Thanks.
Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: union-quals.diff
Type: text/x-patch
Size: 4028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120402/1c848b20/attachment.bin>
More information about the cfe-commits
mailing list