diff options
| author | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | 2023-05-03 06:10:39 -0400 |
|---|---|---|
| committer | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | 2023-05-03 08:54:35 -0400 |
| commit | 22e2db6010b029ebd4c6d3d1fd30224d8b3109ef (patch) | |
| tree | d39fd95ad345a2cb1d27c65ec27b452f0f9e871e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 15723e6f8c2745639acfed6487bae577be5b37d7 (diff) | |
[clang] Reject flexible array member in a union in C++
It was rejected in C, and in a strange way accepted in C++. However, the
support was never properly tested and fully implemented, so just reject
it in C++ mode as well.
This change also fixes crash on attempt to initialize union with flexible
array member. Due to missing check on union, there was a null expression
added to init list that caused crash later.
Fixes https://github.com/llvm/llvm-project/issues/61746
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D147626
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
