[clang] [clang] Bind the __builtin_bit_cast operand as std::bit_cast binds its parameter (PR #231830)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 18 13:12:56 PDT 2026


================
@@ -428,7 +428,7 @@ struct vol_mem {
 };
 
 // both-error at +2 {{constexpr variable 'run_vol_mem' must be initialized by a constant expression}}
-// both-note at +1 {{non-literal type 'vol_mem' cannot be used in a constant expression}}
+// both-note-re at +1 {{non-literal type '{{(const )?}}vol_mem' cannot be used in a constant expression}}
----------------
efriedma-quic wrote:

Please fix bytecode at the same time.

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


More information about the cfe-commits mailing list