[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 14 02:18:49 PDT 2024


================
@@ -3334,7 +3347,9 @@ static bool evaluateVarDeclInit(EvalInfo &Info, const Expr *E,
     return true;
   }
 
-  if (isa<ParmVarDecl>(VD)) {
+  // P2280R4 struck the restriction that variable of referene type lifetime
----------------
Fznamznon wrote:

```suggestion
  // P2280R4 struck the restriction that variable of reference type lifetime
```

Though I wonder if these comments should say struck if this was a DR

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


More information about the cfe-commits mailing list