Initialize ImplicitConversionSequence::ListInitializationSequence. Fixes PR11394

llvm-svn: 144992
This commit is contained in:
Douglas Gregor 2011-11-19 09:56:57 +00:00
parent 3005bfd516
commit 6cdda3bde6

View File

@ -414,12 +414,14 @@ namespace clang {
BadConversionSequence Bad;
};
ImplicitConversionSequence() : ConversionKind(Uninitialized) {}
ImplicitConversionSequence()
: ConversionKind(Uninitialized), ListInitializationSequence(false) {}
~ImplicitConversionSequence() {
destruct();
}
ImplicitConversionSequence(const ImplicitConversionSequence &Other)
: ConversionKind(Other.ConversionKind)
: ConversionKind(Other.ConversionKind),
ListInitializationSequence(Other.ListInitializationSequence)
{
switch (ConversionKind) {
case Uninitialized: break;