re PR c++/85883 (class template argument deduction fails in new-expression)
authorMarek Polacek <polacek@redhat.com>
Tue, 29 May 2018 17:44:07 +0000 (17:44 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 29 May 2018 17:44:07 +0000 (17:44 +0000)
commit009bb506b1a01ceff3ddf0f17a78c381891dfa64
treef75ef7c06046f84642502dfd0ca4b3d3ba1ceb0a
parent5baa6f8ebde0cc93ffe0921f572431edf3f85796
re PR c++/85883 (class template argument deduction fails in new-expression)

PR c++/85883
* init.c (build_new): Handle deducing a class with new
with more than one argument.

* g++.dg/cpp1z/class-deduction55.C: New test.
* g++.dg/cpp1z/class-deduction56.C: New test.
* g++.dg/cpp1z/class-deduction57.C: New test.

From-SVN: r260901
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/class-deduction55.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/class-deduction56.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/class-deduction57.C [new file with mode: 0644]