[PATCH] D82526: [AST][RecoveryExpr] Add error-bit to NestNameSpecifierDependence and TemplateNameDependence.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 25 01:56:58 PDT 2020


hokein created this revision.
hokein added a reviewer: sammccall.
Herald added a project: clang.

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`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82526

Files:
  clang/include/clang/AST/DependenceFlags.h
  clang/test/Sema/invalid-bitwidth-expr.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82526.273249.patch
Type: text/x-patch
Size: 5091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200625/039354c9/attachment.bin>


More information about the cfe-commits mailing list