]> granicus.if.org Git - clang/commit
Per the grammar in [dcl.dcl]p1, a simple-declaration can only have attributes
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 22 Feb 2013 09:06:26 +0000 (09:06 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 22 Feb 2013 09:06:26 +0000 (09:06 +0000)
commit68ea3aeff1be9412658f4c96fdab0d8ad875be6c
tree48a250d8a4aed03972981c8f8cc501247be19a6c
parentf6565a9f7318b1ca6ea9510003dde7b89696daab
Per the grammar in [dcl.dcl]p1, a simple-declaration can only have attributes
if it has declarators. We were missing the check for this in a couple of places.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
lib/Parse/ParseTemplate.cpp
test/Parser/cxx0x-attributes.cpp