]> granicus.if.org Git - clang/commit
Reapply r107235, this time with both my typo fixed, and a logical bug fixed.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 30 Jun 2010 02:59:29 +0000 (02:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 30 Jun 2010 02:59:29 +0000 (02:59 +0000)
commite861c60bde74cf495447f50844d7ee7ea3a8a7a0
tree8ed4e4a24f4ac69f016f8310f59d378302c6e4cc
parentec29b352b7ab2a2e99f7a9b78ce27c5e2a08d0e1
Reapply r107235, this time with both my typo fixed, and a logical bug fixed.
Previously we relied on the presence of a member which needs no initialization
to prevent us from creating an additional initialization of the outer anonymous
union field. We have already correctly marked that field as initialized by the
member of the union (repeatedly due to the original bug this patch fixes) so we
simply need to bail out.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/constructor-initializer.cpp