https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63515
--- Comment #3 from Luka Rahne ---
Extra observations:
It looks to me that assignment "auto c = CurriedImpl<2,some_type>(f);" tries to
construct an operator();
If operator() is renamed to function fun or assignment is replaced by
constructor th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63515
--- Comment #2 from Luka Rahne ---
This bug boils to to point where in member function
template
CurriedImpl
//sizeof...(Rem) depends here on size of arguments of std::function
operator()(Rem ... a_rem)
{
}
deduced num
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63515
--- Comment #1 from Luka Rahne ---
Created attachment 33704
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33704&action=edit
Shorter Example
++
Assignee: unassigned at gcc dot gnu.org
Reporter: luka.rahne at gmail dot com
Created attachment 33694
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33694&action=edit
source that fails
I was working on curried functions and came across some unusual behaviour.
(comp