[cfe-commits] [Patch] Fix parser diagnostic on class specifiers following c++11 attributes

Michael Han fragmentshaders at gmail.com
Thu Nov 15 10:33:42 PST 2012


Hi,

Consider this code
class [[foo]] c [[foo]];

Clang generates diagnostic like this:
error: an attribute list cannot appear here
class [[foo]] c [[foo]];
      ^~~~

I think the first attribute is conforming, and it's the second attribute
that should be diagnosed.
Attached the patch that fixes this.

Thanks
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121115/9988859e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parser.patch
Type: application/octet-stream
Size: 2520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121115/9988859e/attachment.obj>


More information about the cfe-commits mailing list