diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-01 20:39:51 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-01 20:39:51 +0000 |
commit | 249ceade4942a2a5d7888541c547abeda5bb85b4 (patch) | |
tree | c8485a0d698228df738ac296881e605a7bc86ce3 /lib/Sema/SemaCXXCast.cpp | |
parent | 85caf03ee49c4de87ee9624a9b725ef5d20ee624 (diff) |
Patch to implement static casting which requires one
user-defined type conversion. Fixes PR5040.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCXXCast.cpp')
-rw-r--r-- | lib/Sema/SemaCXXCast.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaCXXCast.cpp b/lib/Sema/SemaCXXCast.cpp index e5c4390752..9822a44b0f 100644 --- a/lib/Sema/SemaCXXCast.cpp +++ b/lib/Sema/SemaCXXCast.cpp @@ -806,7 +806,8 @@ TryStaticImplicitCast(Sema &Self, Expr *SrcExpr, QualType DestType, /*SuppressUserConversions=*/false, /*AllowExplicit=*/true, /*ForceRValue=*/false, - /*InOverloadResolution=*/false); + /*InOverloadResolution=*/false, + /*one of user provided casts*/true); if (ICS.ConversionKind == ImplicitConversionSequence::BadConversion) return TC_NotApplicable; |