US 19 - deduction guides and constructors
authorJason Merrill <jason@redhat.com>
Fri, 20 Jan 2017 04:43:13 +0000 (23:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 20 Jan 2017 04:43:13 +0000 (23:43 -0500)
commit689f867c9c8668f864520372562f8e1b3ca7137c
tree1c8ef26acf7c7f2e37d0cd34a5c207a850688c04
parenta3a1620bb840d62dbde06ce0290e8e5cfcbbf18b
US 19 - deduction guides and constructors

* call.c (joust): Prefer deduction guides to constructors.
* pt.c (build_deduction_guide): Set DECL_ARTIFICIAL.
(deduction_guide_p): Check DECL_P.

From-SVN: r244681
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction25.C [new file with mode: 0644]