- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Simon,
Could you please attach the testcase which generates this warning.
Thanks and Regards
Anoop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you this has already been reported in this topic here:
https://software.intel.com/en-us/forums/topic/531592
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page