PR5066: If a declarator cannot have an identifier, and cannot possibly be
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 11 Jul 2013 05:10:21 +0000 (05:10 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 11 Jul 2013 05:10:21 +0000 (05:10 +0000)
commit9ce302ed9c29be8f2e9d83f777d20513c3b22109
treec58dd33c4b48cf30f53bb3f158a2c2d641214d95
parentc6b5e2499edbbbf588470d91ae21719735aefaa7
PR5066: If a declarator cannot have an identifier, and cannot possibly be
followed by an identifier, then diagnose an identifier as being a bogus part of
the declarator instead of tripping over it. Improves diagnostics for cases like

  std::vector<const int *p> my_vec;

llvm-svn: 186061
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Sema/DeclSpec.h
clang/lib/Parse/ParseDecl.cpp
clang/test/FixIt/fixit.cpp
clang/test/Parser/cxx-decl.cpp
clang/test/Parser/cxx-template-argument.cpp
clang/test/Parser/cxx0x-decl.cpp