[AST][RecoveryExpr] Add error-bit TemplateArgument
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 24 Jun 2020 14:14:34 +0000 (16:14 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 24 Jun 2020 14:21:35 +0000 (16:21 +0200)
commit5f94c9a421ec7cc7ece2bd875e010639ee0783ec
treeec3d9fd046c667a4571e19c7c07ddbc7bb724593
parent16e17ca16a89daa099fd2726d92f08a49870e5a9
[AST][RecoveryExpr] Add error-bit TemplateArgument

Summary: We are missing the error-bit somehow if the error-bit is propagated
through the code path: "error type/expr" -> "template argument" ->
"template specialization type", which will lead to crashes.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82102
clang/include/clang/AST/DependenceFlags.h
clang/lib/AST/Type.cpp
clang/test/SemaCXX/invalid-template-base-specifier.cpp