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)
commit2386c8b2211f3708cb475ffbcfb38df127559bb1
tree0d6f683dad532c515677d3f2611959b912509a8b
parent44c247f0f009eec70a193335c8a353d6f8602bfd
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.

llvm-svn: 175876
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseTemplate.cpp
clang/test/Parser/cxx0x-attributes.cpp