================
@@ -11134,12 +11047,24 @@ DeclResult Sema::ActOnExplicitInstantiation(Scope *S,
TSK = TSK_ExplicitInstantiationDeclaration;
Specialization->setTemplateSpecializationKind(TSK, D.getIdentifierLoc());
+
if (Specialization->isDefined()) {
// Let the ASTConsumer know that this function has been explicitly
// instantiated now, and its linkage might have changed.
Consumer.HandleTopLevelDecl(DeclGroupRef(Specialization));
- } else if (TSK == TSK_ExplicitInstantiationDefinition)
+ } else if (TSK == TSK_ExplicitInstantiationDefinition) {
+ // C++2c [expr.prim.lambda#closure-19] A member of a closure type shall not
----------------
Endilll wrote:
`[expr.prim.lambda.closure]/19` is how such a stable reference usually looks
like. URLs that you get from eel.is depend on the section you've opened before
copying a link to a paragraph.
https://github.com/llvm/llvm-project/pull/192843
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits