================
@@ -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:
Not for this PR: can you think of any way we can make this cleaner to
distinguish when getEnclosingNonExpansionStatementContext is or is not needed?
https://github.com/llvm/llvm-project/pull/217110
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits