================ @@ -2431,10 +2434,14 @@ void ASTDeclReader::VisitClassTemplateDecl(ClassTemplateDecl *D) { mergeRedeclarableTemplate(D, Redecl); if (ThisDeclID == Redecl.getFirstID()) { - // This ClassTemplateDecl owns a CommonPtr; read it to keep track of all of - // the specializations. + // This ClassTemplateDecl owns a CommonPtr; read it to keep track of all + // of the specializations. SmallVector<serialization::DeclID, 32> SpecIDs; readDeclIDList(SpecIDs); + + if (Record.readInt()) + ReadDeclsSpecs(*Loc.F, D, Loc.F->DeclsCursor); ---------------- vgvassilev wrote:
What if the TemplateDecl came from a different module file and this module file contains only specializations? https://github.com/llvm/llvm-project/pull/76774 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits