[PATCH] D65694: Properly instantiate a decltype in argument's default initializer
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 15:08:01 PDT 2019
rsmith added a comment.
This isn't the right approach: instead of re-instantiating the parameter when we encounter a use of it, we should inject the parameters into the local instantiation scope before trying to instantiate a default argument (`Sema::CheckCXXDefaultArgExpr` should call `addInstantiatedParametersToScope` to populate the `LocalInstantiationScope` before calling `SubstInitializer`).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65694/new/
https://reviews.llvm.org/D65694
More information about the cfe-commits
mailing list