g++ is more permissive regarding flexible arrays.
commitd97cec3deb6e34f0f9d4f5f8ec11b28e44812727
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Mar 2011 20:04:04 +0000 (7 20:04 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Mar 2011 20:04:04 +0000 (7 20:04 +0000)
tree3f2d1be729838a68551fa8e3e1b75c2ee2116a83
parentaa11289f754d220c9c155b68a4f84cdcfcefef6a
g++ is more permissive regarding flexible arrays.
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
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCXX/flexible-array-test.cpp