When a type-id is unexpectedly given a name, assume that the name is unrelated
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 19 May 2017 01:54:59 +0000 (01:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 19 May 2017 01:54:59 +0000 (01:54 +0000)
commit74639b1900ec07276ab40f1eea3e632f204000fe
treeeb5f2c53f4abdaa9448c533a9959925f48c104fe
parent8f1d87a79abb91cb44292e5cfde350e85a119385
When a type-id is unexpectedly given a name, assume that the name is unrelated
syntax unless we have a reason to think otherwise.

This improves error recovery in a couple of cases.

llvm-svn: 303398
clang/include/clang/Sema/DeclSpec.h
clang/lib/Parse/ParseDecl.cpp
clang/test/Parser/cxx-template-argument.cpp
clang/test/Parser/cxx0x-decl.cpp
clang/test/Sema/block-args.c