================ @@ -444,7 +444,7 @@ const RawComment *ASTContext::getRawCommentForAnyRedecl( return CommentlessRedeclChains.lookup(CanonicalD); }(); - for (const auto Redecl : D->redecls()) { + for (const auto Redecl : CanonicalD->redecls()) { ---------------- zyn0217 wrote:
Yeah, but I still feel the modeling of template specializations should be improved regarding `getSourceRange()` relying on `TemplateParameterListsInfo`, which is really peculiar. But that's another murky topic unrelated to this patch, anyway. https://github.com/llvm/llvm-project/pull/108475 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits