https://llvm.org/bugs/show_bug.cgi?id=25676
Bug ID: 25676
Summary: compiler rejects allignas with using declaration
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Attempting to compile:
using Aligned16Buffer alignas(16) = char[8];
results in:
alignas_test.cpp:1:23: error: 'alignas' attribute only applies to variables,
data members and tag types
I don't have the standard and might not correctly interpret it if I did but
according to various reports one can google, including:
https://stackoverflow.com/questions/15788947/where-can-i-use-alignas-in-c11
The above usage is correct. I compiled this simple test with:
clang++ -std=c++11 -c alignas_test.cpp
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs