aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ChangeLog
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-02-26 00:33:52 -0500
committerJason Merrill <jason@redhat.com>2020-02-26 00:33:52 -0500
commitf93784da474823ad563a9dfd6fd535a017b4bc9f (patch)
tree6f5cc3c5d6f257b73620fc3c7869808af65c09eb /gcc/cp/ChangeLog
parent2b6565dd2d07d3f2f706795f800d0cc2ff8f2f68 (diff)
downloadgcc-f93784da474823ad563a9dfd6fd535a017b4bc9f.zip
gcc-f93784da474823ad563a9dfd6fd535a017b4bc9f.tar.gz
gcc-f93784da474823ad563a9dfd6fd535a017b4bc9f.tar.bz2
PR c++/86521 - wrong overload resolution with ref-qualifiers.
Here we were wrongly treating binding a const lvalue ref to an xvalue as direct binding, which is wrong under [dcl.init.ref] and [over.match.ref]. gcc/cp/ChangeLog 2020-02-26 Jason Merrill <jason@redhat.com> PR c++/86521 - wrong overload resolution with ref-qualifiers. * call.c (build_user_type_conversion_1): Don't use a conversion to a reference of the wrong rvalueness for direct binding.
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r--gcc/cp/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f963baa..2b13eba 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-26 Jason Merrill <jason@redhat.com>
+
+ PR c++/86521 - wrong overload resolution with ref-qualifiers.
+ * call.c (build_user_type_conversion_1): Don't use a conversion to a
+ reference of the wrong rvalueness for direct binding.
+
2020-02-25 Jason Merrill <jason@redhat.com>
PR c++/89831 - error with qualified-id in const member function.