[clang] [Clang] Fix dependent local class instantiation bugs (PR #134038)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 2 06:38:02 PDT 2025


================
@@ -4264,7 +4264,8 @@ Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation,
       if (FunctionDecl *Pattern =
               Function->getInstantiatedFromMemberFunction()) {
 
-        if (Function->isIneligibleOrNotSelected())
+        if (!Instantiation->getDeclContext()->isDependentContext() &&
----------------
erichkeane wrote:

Hmm... I don't think we want to go this far, right?    We still would like to aggressively instantiate these so we get diagnostics/etc, even if it is in a dependent context.  

https://github.com/llvm/llvm-project/pull/134038


More information about the cfe-commits mailing list