Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Incomplete C++11 "alignas" implementation

Simon_H_2
Beginner
525 Views
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
525 Views

Hi Simon,

Could you please attach the testcase which generates this warning. 

Thanks and Regards
Anoop

0 Kudos
Simon_H_2
Beginner
525 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

 

0 Kudos
Judith_W_Intel
Employee
525 Views

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

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

 

0 Kudos
Reply