]> granicus.if.org Git - clang/commit
When filling in value initializations within an initializer list, be
authorDouglas Gregor <dgregor@apple.com>
Tue, 22 Dec 2009 00:05:34 +0000 (00:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 22 Dec 2009 00:05:34 +0000 (00:05 +0000)
commitd6d37dee48cfc5bbcc998bd9d151e4fb3a9437e8
tree11e72562f32b7e3e12721bd2b6b83869c3caa1dc
parent4fcc4fd1adf272450bdecab7f9133ae2f0b8aa19
When filling in value initializations within an initializer list, be
sure to fill in the initialized member of a union when a member was
explicitly designated. Fixes PR5843.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91858 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/Sema/designated-initializers.c