https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99185
m.cencora at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.cencora at gmail dot com --- Comment #4 from m.cencora at gmail dot com --- I think it is just that sanitizer didn't caught up to the C++20 standard where constexpr was relaxed to allow uninitialized variables. Constant initialization is applied only when class constructor in constexpr, and only since C++20 'A' class has constexpr constructor. Proof, following compiles only since C++20: struct A { int value; constexpr A() = default; };