diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -6860,6 +6860,7 @@ AutoTypeLoc NewTL = TLB.push(Result); NewTL.setNameLoc(TL.getNameLoc()); NewTL.setRParenLoc(TL.getRParenLoc()); + NewTL.setConceptReference(nullptr); if (T->isConstrained()) { DeclarationNameInfo DNI = DeclarationNameInfo(