[all-commits] [llvm/llvm-project] 5ae577: [Sema] Fix handling of fields with initializers in...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Tue Jun 4 09:25:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ae5774fb0b5cac11af479b0905dfdd5255b4047
https://github.com/llvm/llvm-project/commit/5ae5774fb0b5cac11af479b0905dfdd5255b4047
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2024-06-04 (Tue, 04 Jun 2024)
Changed paths:
M clang/lib/Sema/SemaInit.cpp
M clang/test/AST/ast-dump-APValue-anon-union.cpp
M clang/test/SemaCXX/cxx1y-initializer-aggregates.cpp
Log Message:
-----------
[Sema] Fix handling of fields with initializers in nested anonymous unions. (#91692)
Make sure we count the anonymous union as an initialized field, so we
properly construct the AST.
Included bonus testcase Test3, which shows a remaining gap: an anonymous
union can contain a partially initialized anonymous struct, and we
handle that inconsistently.
Fixes #91257
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