diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-21 16:48:38 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-21 16:48:38 +0000 |
commit | b13ede9f440f52ccfce046f1eba98679e9ffc0e6 (patch) | |
tree | 1ed7ed86d8354738d2d0203348a3a14ade7fe7bd /lib/Sema/SemaOverload.cpp | |
parent | 0baa92292ba26aa4ff1cf202623a2c7dc7c43aaf (diff) |
Add test for overload resolution's preference for binding an rvalue
reference to an rvalue rather than binding a const-qualified lvalue
reference to that rvalue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index f35a5b2893..478684b262 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -2434,9 +2434,9 @@ CompareStandardConversionSequences(Sema &S, // implicit object parameter of a non-static member function declared // without a ref-qualifier, and S1 binds an rvalue reference to an // rvalue and S2 binds an lvalue reference. - // FIXME: We don't know if we're dealing with the implicit object parameter, - // or if the member function in this case has a ref qualifier. - // (Of course, we don't have ref qualifiers yet.) + // FIXME: Rvalue references. We don't know if we're dealing with the + // implicit object parameter, or if the member function in this case has a + // ref qualifier. (Of course, we don't have ref qualifiers yet.) if (SCS1.RRefBinding != SCS2.RRefBinding) return SCS1.RRefBinding ? ImplicitConversionSequence::Better : ImplicitConversionSequence::Worse; |