[all-commits] [llvm/llvm-project] d28267: [AST][RecoveryExpr] Add error-bit to NestNameSpeci...

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Jun 30 03:07:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d28267f9810ce8642b27279b91a3a195ba932ce2
      https://github.com/llvm/llvm-project/commit/d28267f9810ce8642b27279b91a3a195ba932ce2
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M clang/include/clang/AST/DependenceFlags.h
    M clang/test/Sema/invalid-bitwidth-expr.mm

  Log Message:
  -----------
  [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




More information about the All-commits mailing list