Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Simon_H_2
Beginner
159 Views

Incomplete C++11 "alignas" implementation

Hi, icc 15.0 gives me a warning when compiling the following code: template using type alignas(64) = T; warning #3463: alignas does not apply here using type alignas(64) = T; If I understand correctly my code is correct, and indeed GCC and Clang compile it properly without warnings. Is this a known issue with icc? Can I expect a fix in future versions? Thanks, Simon
0 Kudos
3 Replies
Anoop_M_Intel
Employee
159 Views

Hi Simon,

Could you please attach the testcase which generates this warning. 

Thanks and Regards
Anoop

Simon_H_2
Beginner
159 Views

Sorry, the forum seems to have swallowed the template brackets in my first post, put this in test.cc:

template <class T>
using type alignas(64) = T;

type<int> x;

Compile with

icpc -std=c++0x -c test.cc

 

Judith_W_Intel
Employee
159 Views

Thank you this has already been reported in this topic here:

https://software.intel.com/en-us/forums/topic/531592

 

Reply