[clang] [clang] Implement CWG2815 (PR #132778)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 06:58:40 PDT 2025


================
@@ -5229,10 +5229,23 @@ TryReferenceInit(Sema &S, Expr *Init, QualType DeclType,
       S.CompareReferenceRelationship(DeclLoc, T1, T2, &RefConv);
 
   auto SetAsReferenceBinding = [&](bool BindsDirectly) {
+    // C++2c [over.ics.ref] p1:
----------------
cor3ntin wrote:

Maybe 
```suggestion
    // C++26 [over.ics.ref]p1 (CWG2815):
```

https://github.com/llvm/llvm-project/pull/132778


More information about the cfe-commits mailing list