diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2013-11-02 11:19:13 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2013-11-02 11:19:13 +0000 |
| commit | 3a665576c16c353d8f524189d695e3c9140eefb8 (patch) | |
| tree | b53bb8e9e8baeb9994234a53537751a2cd1feddc /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 633c0c2fbc1d9272b3f25220ffb8fe4b04ece3db (diff) | |
| download | clang-3a665576c16c353d8f524189d695e3c9140eefb8.tar.gz clang-3a665576c16c353d8f524189d695e3c9140eefb8.tar.bz2 clang-3a665576c16c353d8f524189d695e3c9140eefb8.tar.xz | |
Sema: Disallow derived classes with virtual bases from having flexible array members
Flexible array members only work out if they are the last field of a
record, however virtual bases would give us many situations where the
flexible array member would overlap with the virtual base fields.
It is unlikely in the extreme that this behavior was intended by the
user so raise a diagnostic instead of accepting. This is will not
reject conforming code because flexible array members are an extension
in C++ mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
