[llvm-bugs] [Bug 25676] New: compiler rejects allignas with using declaration
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 29 20:00:33 PST 2015
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: unassignedclangbugs at nondot.org
Reporter: jorgensen at kcg.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151130/35693c2f/attachment.html>
More information about the llvm-bugs
mailing list