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

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 01:05:20 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:
----------------
zyn0217 wrote:

This does not apply only to c++26, right?

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


More information about the cfe-commits mailing list