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

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 9 19:19:08 PDT 2024


================
@@ -249,13 +249,15 @@ class APValue {
   struct NoLValuePath {};
   struct UninitArray {};
   struct UninitStruct {};
+  struct ConstexprUnknown {};
 
   template <typename Impl> friend class clang::serialization::BasicReaderBase;
   friend class ASTImporter;
   friend class ASTNodeImporter;
 
 private:
   ValueKind Kind;
+  bool AllowConstexprUnknown = false;
----------------
shafik wrote:

Initializing a bit-field inline is a C++20 extension and it got messy when I tried to do the init manually but I can look at it again now that this is a much simpler set of code.

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


More information about the cfe-commits mailing list