[clang] [Clang] disallow non-lvalue values in constant expressions to prevent invalid pointer offset computation (PR #95479)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 17 02:37:59 PDT 2024


================
@@ -858,6 +858,8 @@ Bug Fixes to C++ Support
 - Fixed several bugs in capturing variables within unevaluated contexts. (#GH63845), (#GH67260), (#GH69307),
   (#GH88081), (#GH89496), (#GH90669) and (#GH91633).
 - Fixed handling of brace ellison when building deduction guides. (#GH64625), (#GH83368).
+- Fixed a failed assertion when attempting to convert an integer representing the difference
+  between the addresses of two labels (a GNU extension) to a pointer within a constant expression. (GH95366).
----------------
Sirraide wrote:

```suggestion
  between the addresses of two labels (a GNU extension) to a pointer within a constant expression. (#GH95366).
```

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


More information about the cfe-commits mailing list