Update overload resolution with deduction guides.
authorJason Merrill <jason@redhat.com>
Fri, 3 Mar 2017 07:31:54 +0000 (02:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 3 Mar 2017 07:31:54 +0000 (02:31 -0500)
commitfb5ce60890c11a637aa1809389a9e8f6f7b87360
treee6eefc85ee94c7cd7955656f0a9ac5d017180d41
parentde35db4271bdfc6a648a5c5f504308c84ecb639b
Update overload resolution with deduction guides.

* pt.c (do_class_deduction): Always build the copy guide.
(copy_guide_p, template_guide_p): New.
(build_deduction_guide): Remember the original constructor.
* call.c (joust): Prefer the copy guide and non-template guides.

From-SVN: r245859
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction36.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/class-deduction38.C [new file with mode: 0644]