================
@@ -640,7 +640,9 @@ bool Sema::MergeCXXFunctionDecl(FunctionDecl *New,
FunctionDecl *Old,
<< (New->getTemplateSpecializationKind()
==TSK_ExplicitSpecialization)
<< New->getDeclName()
<< NewParam->getDefaultArgRange();
- } else if (New->getDeclContext()->isDependentContext()) {
+ } else if (New->getDeclContext()
+ ->getEnclosingNonExpansionStatementContext()
+ ->isDependentContext()) {
----------------
ojhunt wrote:
I ddi mean in general, but I was not particularly hopeful - I just figured that
you might have some idea of a way to reduce the footgun potential
https://github.com/llvm/llvm-project/pull/217110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits