[cfe-dev] Incompatible type vector assignment error in Clang Rev 3.1

sreelatha Rudrappa brshreelatha at gmail.com
Fri Oct 12 02:56:37 PDT 2012


Hi All,

I am encountering the following error

"assigning to 'uint4' from incompatible type 'int
__attribute__((ext_vector_type(4)))'"

for code, p = q < (uint4)2; where p and q are of type uint4

The explicit type casting before assignement [p = (unit4)(q < (uint4)2)]
resolves the error.

In Clang Rev 2.9, there was no error for such code.

Avoiding this implicit conversion of 'int4' to 'uint4' is intentional in
Clang Rev3.1 OR am i missing something.

Regards

Sreelatha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121012/70197394/attachment.html>


More information about the cfe-dev mailing list