[Bug c++/85883] class template argument deduction fails in new-expression

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 29 17:44:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue May 29 17:44:07 2018
New Revision: 260901

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

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction55.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction56.C
    trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction57.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list