balazske wrote: I could reproduce this assertion (with CTU analysis on project "contour"): ``` clang-19: llvm-project/clang/lib/AST/DeclTemplate.cpp:370: void clang::RedeclarableTemplateDecl::addSpecializationImpl(llvm::FoldingSetVector<EntryType>&, EntryType*, void*) [with Derived = clang::VarTemplateDecl; EntryType = clang::VarTemplateSpeciali zationDecl]: Assertion `!findSpecializationImpl(Specializations, CorrectInsertPos, SETraits::getTemplateArgs(Entry)) && InsertPos == CorrectInsertPos && "given incorrect InsertPos for specialization"' failed. ``` With the latest clang (debug or release) the assertion does not show up any more (when the same test is run). Still I think that this change is an improvement in the code and could be merged, even if no test can be found that triggers the assertion.
https://github.com/llvm/llvm-project/pull/89887 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits