[clang] [llvm] [Clang] Fix definition of layout-compatible to ignore empty classes (PR #92103)

John McCall via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 15:08:08 PDT 2024


================
@@ -160,6 +160,9 @@ Bug Fixes in This Version
 Bug Fixes to Compiler Builtins
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+- ``__is_layout_compatible`` no longer requires the empty bases to be the same in two
+  standard-layout classes. It now only compares non-static data members.
----------------
rjmccall wrote:

Hmm.  I was under the impression that this feature had not been previously released; is that incorrect?

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


More information about the llvm-commits mailing list