aboutsummaryrefslogtreecommitdiff
path: root/libcpp/files.cc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2024-10-15 13:23:17 -0400
committerPatrick Palka <ppalka@redhat.com>2024-10-15 13:23:17 -0400
commit8161c4adea7f1842f9d28633d82e912ebb7a4cf9 (patch)
treef5d161da39c4a640138b1c1df01cd46dcad7365c /libcpp/files.cc
parentbb2bfdb2048aed18ef7dc01b51816a800e83ce54 (diff)
downloadgcc-8161c4adea7f1842f9d28633d82e912ebb7a4cf9.zip
gcc-8161c4adea7f1842f9d28633d82e912ebb7a4cf9.tar.gz
gcc-8161c4adea7f1842f9d28633d82e912ebb7a4cf9.tar.bz2
c++: unifying lvalue vs rvalue (non-forwarding) ref [PR116710]
When unifying two (non-forwarding) reference types, unify immediately recurses into the referenced type without first comparing rvalueness. (Note that at this point forwarding references and other reference parameters have already been stripped to their referenced type by maybe_adjust_types_for_deduction, so this code path applies only to nested reference types.) PR c++/116710 gcc/cp/ChangeLog: * pt.cc (unify) <case REFERENCE_TYPE>: Compare rvalueness. gcc/testsuite/ChangeLog: * g++.dg/template/unify12.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions