]> granicus.if.org Git - clang/commit
Allow list-initialization of a local variable of class type with a
authorDouglas Gregor <dgregor@apple.com>
Fri, 15 Oct 2010 23:53:28 +0000 (23:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 15 Oct 2010 23:53:28 +0000 (23:53 +0000)
commitc6eddf50bff68683238f06625fa9fb5016a3694c
tree6ae934075b7ffd1d95865c0f8ef3f91767d444da
parent31df9be7a85615a6aaeaf8b0ce6721760d4efdcf
Allow list-initialization of a local variable of class type with a
flexible array member, so long as the flexibility array member is
either not initialized or is initialized with an empty initializer
list. Fixes <rdar://problem/8540437>.

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