[llvm-bugs] [Bug 31482] New: Attributes in a type-specifier-seq
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 27 13:12:33 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31482
Bug ID: 31482
Summary: Attributes in a type-specifier-seq
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: aaron at aaronballman.com
Reporter: aaron at aaronballman.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
According to [dcl.type]p1, a type-specifier-seq allows an attribute after the
type specifier, but Clang does not appear to allow an attribute in this
position. Consider:
volatile int *ip = new volatile [[]] int [[]];
F:\Aaron Ballman\Desktop\test.cpp:1:33: error: an attribute list cannot appear
here
volatile int *ip = new volatile [[]] int [[]];
^~~~
1 error generated.
GCC 6.2 and MSVC 2015 compile this construct without diagnosing.
--
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/20161227/5935d3fa/attachment.html>
More information about the llvm-bugs
mailing list