]> granicus.if.org Git - clang/commitdiff
Initialize ImplicitConversionSequence::ListInitializationSequence. Fixes PR11394
authorDouglas Gregor <dgregor@apple.com>
Sat, 19 Nov 2011 09:56:57 +0000 (09:56 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 19 Nov 2011 09:56:57 +0000 (09:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144992 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Overload.h

index e9ca3359c51d21fc01af8140720f8c8035349a55..2cdf0d5f05c00b690d6b2fc231b92a41fcc35a6d 100644 (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;