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

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 06:27:59 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:
----------------
offsetof wrote:

Right - the wording appears first in C++26 but the relevant changes are DRs.

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


More information about the cfe-commits mailing list