]> granicus.if.org Git - clang/commit
PR13273: When performing list-initialization with an empty initializer list,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Jul 2012 08:39:21 +0000 (08:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 5 Jul 2012 08:39:21 +0000 (08:39 +0000)
commitf4bb8d06c4f1665f89a9e9ddd61f2a2d26904da0
treed0ff432696864702c52b6353671386a07ffc4b10
parente07c5f897e8da88959c93a9d98f1b441da649eb6
PR13273: When performing list-initialization with an empty initializer list,
actually perform value initialization rather than trying to fake it with a call
to the default constructor. Fixes various bugs related to the previously-missing
zero-initialization in this case.

I've also moved this and the other list initialization 'special case' from
TryConstructorInitialization into TryListInitialization where they belong.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159733 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/CodeGenCXX/const-init-cxx11.cpp
test/CodeGenCXX/constructor-init.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaCXX/cxx0x-initializer-constructor.cpp