================
@@ -6355,6 +6355,10 @@ VarTemplateSpecializationDecl 
*Sema::BuildVarTemplateInstantiation(
   if (Inst.isInvalid())
     return nullptr;
 
+  // A variable template specialization is never a local declaration, so it
+  // must not see the locals of whatever instantiation we are currently in.
+  LocalInstantiationScope Local(*this);
----------------
aokblast wrote:

Oh yes. You are right:)

https://github.com/llvm/llvm-project/pull/228280
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to