[PATCH] D147626: [clang] Do not crash when initializing union with flexible array member
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 20 05:07:53 PDT 2023
Fznamznon updated this revision to Diff 515287.
Fznamznon added a comment.
Reject flexible array members in unions in C++ as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147626/new/
https://reviews.llvm.org/D147626
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaInit.cpp
clang/test/Layout/aix-power-alignment-typedef.cpp
clang/test/Sema/MicrosoftExtensions.c
clang/test/Sema/init.c
clang/test/SemaCXX/flexible-array-test.cpp
clang/test/SemaCXX/gnu-flags.cpp
clang/test/SemaObjCXX/flexible-array.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147626.515287.patch
Type: text/x-patch
Size: 8358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230420/6f4bddd8/attachment-0001.bin>
More information about the cfe-commits
mailing list