summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/flexible-array-test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sema: Disallow derived classes with virtual bases from having flexible array ↵David Majnemer2013-11-021-0/+4
| | | | | | | | | | | | | | | 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. llvm-svn: 193920
* g++ is more permissive regarding flexible arrays.Argyrios Kyrtzidis2011-03-071-1/+15
| | | | | | | | It will accept flexible array in union and also as the sole element of a struct/class. Fixes rdar://9065507. llvm-svn: 127171
* It's OK for classes to have flexible array elements (but not unions).Anders Carlsson2010-09-031-0/+10
| | | | llvm-svn: 113018
* Improve on flexible array diagnostics (PR7029).Fariborz Jahanian2010-05-261-1/+1
| | | | llvm-svn: 104739
* Fixes misc. flexible array bugs in c++ (PR7029).Fariborz Jahanian2010-05-261-0/+45
llvm-svn: 104733
OpenPOWER on IntegriCloud