[cfe-dev] vector constructors

Jochen Wilhelmy j.wilhelmy at arcor.de
Wed Mar 17 11:20:29 PDT 2010


Hi!

while playing with vectors I get this error for int. it works for float:

typedef int __attribute__((ext_vector_type(4))) int4;

int4 foo = (int4)(1, 2, 3, 4);

testc.cpp:72:13:{72:13-72:19}: error: C-style cast from scalar 'int' to 
vector
       'int4' of different size
          int4 foo = (int4)(1, 2, 3, 4);


-Jochen



More information about the cfe-dev mailing list