http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033
--- Comment #4 from Marc Glisse <marc.glisse at normalesup dot org> 2011-11-08 22:18:33 UTC --- (In reply to comment #3) > All vector support should also be in the C++ front-end. Can you give an > example of something which does not work? Templates with vectors work already > too. #include <x86intrin.h> double f(){ __m256d x={1,2,3,4}; __m256i m={1,2,3,0}; return __builtin_shuffle(x,m)[0]; } error: ‘__builtin_shuffle’ was not declared in this scope If I just return x[0], I get: error: invalid types ‘__m256d {aka __vector(4) double}[int]’ for array subscript