[all-commits] [llvm/llvm-project] b6a340: [clang] Respect field alignment in layout compatib...
Vlad Serebrennikov via All-commits
all-commits at lists.llvm.org
Thu Mar 7 23:31:21 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b6a340023d383d1e77cb8d91d92c096f791fa8c0
https://github.com/llvm/llvm-project/commit/b6a340023d383d1e77cb8d91d92c096f791fa8c0
Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: 2024-03-08 (Fri, 08 Mar 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaChecking.cpp
M clang/test/CXX/drs/dr25xx.cpp
M clang/test/SemaCXX/type-traits.cpp
M clang/www/cxx_dr_status.html
Log Message:
-----------
[clang] Respect field alignment in layout compatibility of structs (#84313)
This patch implements
[CWG2586](https://cplusplus.github.io/CWG/issues/2583.html) "Common
initial sequence should consider over-alignment". Note that alignment of
union members doesn't have to match, as layout compatibility of unions
is not defined in terms of common initial sequence
(http://eel.is/c++draft/class.mem.general#25).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list