OSDN Git Service

[AST][RecoveryExpr] Add error-bit to NestNameSpecifierDependence and TemplateNameDepe...
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 25 Jun 2020 08:13:48 +0000 (10:13 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 30 Jun 2020 09:56:24 +0000 (11:56 +0200)
commitd28267f9810ce8642b27279b91a3a195ba932ce2
tree8eff40c8f45849cd9d406409145db6eb0d42d0d2
parent2c5ff48e61b5611dee5696c103e654c98d7e43f1
[AST][RecoveryExpr] Add error-bit to NestNameSpecifierDependence and TemplateNameDependence.

Summary:
We might lose the error-bit if the error-bit goes through the code path
"error type/expr" -> "error template argument" -> "nested name specifier" ->
... -> "template Specialization type"

Template name also needs this, as a template can be nested into
an error specifier, e.g. templateName apply in
`TC<decltype(<recovery-expr>(Foo, int()))>::template apply`

Reviewers: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82526
clang/include/clang/AST/DependenceFlags.h
clang/test/Sema/invalid-bitwidth-expr.mm