]> granicus.if.org Git - clang/commit
Sema: Inherit the flexible array property from struct fields
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 24 Sep 2014 11:04:09 +0000 (11:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 24 Sep 2014 11:04:09 +0000 (11:04 +0000)
commitdc251c9c6ceff6dc1cdbc3101bf583396d3a5392
treefe35be426c26765653ad32df03a76f883e309492
parentb58e62139f7c534f587f2d072c4184f978a578e4
Sema: Inherit the flexible array property from struct fields

A record which contains a flexible array member is itself a flexible
array member.  A struct which contains such a record should also
consider itself to be a flexible array member.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218378 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/flexible-array-test.cpp