summaryrefslogtreecommitdiff
path: root/test/SemaCXX/flexible-array-test.cpp
Commit message (Collapse)AuthorAge
* Fix "regression" caused by updating our notion of POD to better match the C++11Richard Smith2014-01-11
| | | | | | | | | rules: instead of requiring flexible array members to be POD, require them to be trivially-destructible. This seems to be the only constraint that actually matters here (and even then, it's questionable whether this matters). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198983 91177308-0d34-0410-b5e6-96231b3b80d8
* Sema: Disallow derived classes with virtual bases from having flexible array ↵David Majnemer2013-11-02
| | | | | | | | | | | | | | | | 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
* g++ is more permissive regarding flexible arrays.Argyrios Kyrtzidis2011-03-07
| | | | | | | | It will accept flexible array in union and also as the sole element of a struct/class. Fixes rdar://9065507. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127171 91177308-0d34-0410-b5e6-96231b3b80d8
* It's OK for classes to have flexible array elements (but not unions).Anders Carlsson2010-09-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113018 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve on flexible array diagnostics (PR7029).Fariborz Jahanian2010-05-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104739 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes misc. flexible array bugs in c++ (PR7029).Fariborz Jahanian2010-05-26
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104733 91177308-0d34-0410-b5e6-96231b3b80d8