r245859 - in /trunk/gcc: cp/ChangeLog cp/call.c...

jason@gcc.gnu.org jason@gcc.gnu.org
Fri Mar 3 07:31:00 GMT 2017


Author: jason
Date: Fri Mar  3 07:31:54 2017
New Revision: 245859

URL: https://gcc.gnu.org/viewcvs?rev=245859&root=gcc&view=rev
Log:
	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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction36.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction38.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c



More information about the Gcc-cvs mailing list