[cfe-commits] r144992 - /cfe/trunk/include/clang/Sema/Overload.h
Douglas Gregor
dgregor at apple.com
Sat Nov 19 01:56:57 PST 2011
Author: dgregor
Date: Sat Nov 19 03:56:57 2011
New Revision: 144992
URL: http://llvm.org/viewvc/llvm-project?rev=144992&view=rev
Log:
Initialize ImplicitConversionSequence::ListInitializationSequence. Fixes PR11394
Modified:
cfe/trunk/include/clang/Sema/Overload.h
Modified: cfe/trunk/include/clang/Sema/Overload.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Overload.h?rev=144992&r1=144991&r2=144992&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Overload.h (original)
+++ cfe/trunk/include/clang/Sema/Overload.h Sat Nov 19 03:56:57 2011
@@ -414,12 +414,14 @@
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;
More information about the cfe-commits
mailing list