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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D65694: P... Nicholas Allegra via Phabricator via cfe-commits
    • [PATCH] D656... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D656... Mark de Wever via Phabricator via cfe-commits
    • [PATCH] D656... Nicholas Allegra via Phabricator via cfe-commits

Reply via email to