https://bugs.llvm.org/show_bug.cgi?id=38267
Bug ID: 38267
Summary: alignas example won't compile
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: zhong...@pku.org.cn
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
The code is as follow:
char alignas(128) cacheline[128];
This example is given here: http://en.cppreference.com/w/cpp/language/alignas
clang++ rejects it:
code2.cpp:1:6: error: 'alignas' attribute cannot be applied to types
char alignas(128) cacheline[128];
^
1 error generated.
Instead, g++ accepts the above code sample.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs