================
@@ -11919,8 +11919,12 @@ bool Sema::isStdInitializerList(QualType Ty, QualType
*Element) {
CXXRecordDecl *TemplateClass = Template->getTemplatedDecl();
if (TemplateClass->getIdentifier() !=
&PP.getIdentifierTable().get("initializer_list") ||
- !getStdNamespace()->InEnclosingNamespaceSetOf(
- TemplateClass->getDeclContext()))
----------------
ChuanqiXu9 wrote:
Maybe we can fix it by replacing `getDeclContext()` with
`getNonTransparentContext()`
https://github.com/llvm/llvm-project/pull/118537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits