[libcxx-commits] [libcxx] [libc++] Fix ABI break introduced by switching to _LIBCPP_COMPRESSED_PAIR (PR #154686)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 22 07:29:27 PDT 2025


================
@@ -94,7 +92,7 @@ struct user_struct {
 };
 
 #if __SIZE_WIDTH__ == 64
-static_assert(sizeof(user_struct) == 48, "");
+static_assert(sizeof(user_struct) == 40, "");
----------------
ldionne wrote:

Throughout: please `#ifdef` out these tests that don't work on GCC -- actually those should keep checking against `48` bytes. Please also include a link to the GCC bug report for anonymous structs.

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


More information about the libcxx-commits mailing list