[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-07 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890

Ville Voutilainen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-10-07
 CC||jason at redhat dot com,
   ||ville.voutilainen at gmail dot 
com
 Ever confirmed|0   |1

[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-09 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890

--- Comment #2 from Markus Trippelsdorf  ---
*** Bug 77912 has been marked as a duplicate of this bug. ***

[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-10 Thread jeff.mirwaisi at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890

--- Comment #3 from Jeff Mirwaisi  ---
Bug 77912 is not a duplicate of this bug (77890), please see 77912 for details,
unless 77890 is to be used as a general bug for all class template type
deduction issues - if not Vittorio Romeo's example of failure with respect to
local types should also be a standalone bug

[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890

Jason Merrill  changed:

   What|Removed |Added

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

[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890

--- Comment #4 from Jason Merrill  ---
Author: jason
Date: Mon Oct 10 20:48:51 2016
New Revision: 240948

URL: https://gcc.gnu.org/viewcvs?rev=240948&root=gcc&view=rev
Log:
C++17 class deduction issues

PR c++/77890
PR c++/77912
* pt.c (do_class_deduction): Set cp_unevaluated_operand.
(tsubst) [TEMPLATE_TYPE_PARM]: Copy CLASS_PLACEHOLDER_TEMPLATE.

Added:
trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction19.C
trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction20.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c

[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |7.0

--- Comment #5 from Jason Merrill  ---
Fixed.