[all-commits] [llvm/llvm-project] 5fa5ff: [Clang] Fix missing diagnostic for non-standard la...
kasuga-fj via All-commits
all-commits at lists.llvm.org
Mon Oct 9 23:31:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fa5ffeb6cb5bc9aa414c02513e44b8405f0e7cc
https://github.com/llvm/llvm-project/commit/5fa5ffeb6cb5bc9aa414c02513e44b8405f0e7cc
Author: kasuga-fj <143047127+kasuga-fj at users.noreply.github.com>
Date: 2023-10-10 (Tue, 10 Oct 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaExpr.cpp
M clang/test/SemaCXX/class-layout.cpp
M clang/test/SemaCXX/ms_struct.cpp
M clang/test/SemaCXX/offsetof.cpp
M libcxx/include/__type_traits/datasizeof.h
M libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/non_trivial_copy_move_ABI.pass.cpp
M libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/trivial_copy_move_ABI.pass.cpp
Log Message:
-----------
[Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (#65246)
Fixes #64619
Clang warns diagnostic for non-standard layout types in `offsetof` only
if they are in evaluated context. With this patch, you'll also get
diagnostic if you use `offsetof` on non-standard layout types in any
other contexts
More information about the All-commits
mailing list