[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread eplawless+gcc at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 Eric Lawless changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread eplawless+gcc at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 --- Comment #9 from Eric Lawless 2010-12-01 02:59:43 UTC --- Jonathan, you're absolutely right. After some patient explanation by Johannes Schaub (litb) and Eelis van der Weegen (eelis) on IRC (FreeNode/##C++), I realize that GCC's behaviour here

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 --- Comment #8 from Jonathan Wakely 2010-12-01 01:51:06 UTC --- (In reply to comment #6) > I think I did a bad job describing the issue, and I think that it's still a > problem. I'd like to clarify it if I can. The following code works: > >

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread flast at flast dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 --- Comment #7 from Kohei Takahashi 2010-12-01 00:30:45 UTC --- (In reply to comment #6) > Even though the template parameter pack Args expands to double, GCC is unable > to match f to the type function if I use Args..., where it was > able to wi

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread eplawless+gcc at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 Eric Lawless changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 --- Comment #4 from Jonathan Wakely 2010-11-30 20:04:00 UTC --- (In reply to comment #3) > > Therefore compiler is unable to deduce template parameters that are Return, > FirstType and ArgTypes. Right, the lambda can be converted to double(*)(i

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread flast at flast dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 Kohei Takahashi changed: What|Removed |Added CC||flast at flast dot jp --- Comment #3 fr

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 Paolo Carlini changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #2 f

[Bug c++/46719] [C++0x] Cannot call variadic function template

2010-11-30 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719 --- Comment #1 from Jonathan Wakely 2010-11-30 10:36:42 UTC --- Reduced to get rid of library dependencies: template struct function { template function(Functor) { } }; template int curry(function func, FirstType)