]> granicus.if.org Git - clang/commit
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)
commit635020a50def2174b5b0dd3356f59cac53838f1f
tree3e3f475e190845ef80e328276a19ae258fa682ea
parent86fb5b7268f41cf895f7f36099c99d799d3dc004
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303398 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/DeclSpec.h
lib/Parse/ParseDecl.cpp
test/Parser/cxx-template-argument.cpp
test/Parser/cxx0x-decl.cpp
test/Sema/block-args.c