diff options
author | Eli Friedman <efriedma@quicinc.com> | 2024-06-04 09:24:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 09:24:44 -0700 |
commit | 5ae5774fb0b5cac11af479b0905dfdd5255b4047 (patch) | |
tree | 8f7720d0a85d89ecf8aac72720875478fe827cff /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8e94f0a0ad8817ba84474620426e28076e1c0024 (diff) | |
download | llvm-5ae5774fb0b5cac11af479b0905dfdd5255b4047.zip llvm-5ae5774fb0b5cac11af479b0905dfdd5255b4047.tar.gz llvm-5ae5774fb0b5cac11af479b0905dfdd5255b4047.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions