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

2020-05-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

Jonathan Wakely  changed:

   What|Removed |Added

 CC||gccbugreport at yandex dot com

--- Comment #7 from Jonathan Wakely  ---
*** Bug 95135 has been marked as a duplicate of this bug. ***

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

2019-01-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

Jonathan Wakely  changed:

   What|Removed |Added

 CC||jacksonmcneillnospam@gmail.
   ||com

--- Comment #6 from Jonathan Wakely  ---
*** Bug 88634 has been marked as a duplicate of this bug. ***

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

2018-05-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Marek Polacek  ---
Fixed for GCC 9.

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

2018-05-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

--- Comment #4 from Marek Polacek  ---
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

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

2018-05-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

Marek Polacek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |mpolacek at gcc dot 
gnu.org

--- Comment #3 from Marek Polacek  ---
I'll try something.

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

2018-05-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

--- Comment #2 from Marek Polacek  ---
Works with
auto y = new Bar{3, 4};

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

2018-05-23 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek  ---
r245826 changed this from

error: initialization of new-expression for type ‘auto’ requires exactly one
element
 auto y = new Bar(3, 4);
 ^
to
error: class template argument deduction failed:
 auto y = new Bar(3, 4);
 ^   
error: no matching function for call to ‘Bar()’

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

2018-05-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85883

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-05-23
 Ever confirmed|0   |1