[Bug c++/63515] Deduced number of parameters can be deduced from unrelated type

2014-10-13 Thread luka.rahne at gmail dot com
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

[Bug c++/63515] unused templated member can be instatiated

2014-10-13 Thread luka.rahne at gmail dot com
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

[Bug c++/63515] unused templated member can be instatiated

2014-10-13 Thread luka.rahne at gmail dot com
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

[Bug c++/63515] New: unused templated member can be instatiated

2014-10-12 Thread luka.rahne at gmail dot com
++ 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