Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

error: class "__m128" has no suitable assignment operator

$
0
0

This code 

#include <xmmintrin.h>

 

volatile __m128 a, b;

 

void test(void)

{

     a = b;

}

 

produces this error

$ /opt/intel/composerxe/bin/icpc -c test.cc

test.cc(7): error: class "__m128" has no suitable assignment operator

       a = b;

           ^

 

compilation aborted for test.cc (code 2)

 

when compiled with icpc.  There is no error if the variables are not volatile.  There is no error with icc or gcc or g++.

Any suggestion on how to compile it with icpc?

 

 


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>