diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-26 00:33:52 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-26 00:33:52 -0500 |
commit | f93784da474823ad563a9dfd6fd535a017b4bc9f (patch) | |
tree | 6f5cc3c5d6f257b73620fc3c7869808af65c09eb /libgcc/fp-bit.h | |
parent | 2b6565dd2d07d3f2f706795f800d0cc2ff8f2f68 (diff) | |
download | gcc-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 'libgcc/fp-bit.h')
0 files changed, 0 insertions, 0 deletions