------- Comment #2 from cfairles at gcc dot gnu dot org 2008-12-21 14:14 ------- fixing summary, this has to do with function ptr types
template<class T, class U> auto f(T,U) -> decltype(T() + U()) { return T() + U(); } f(1,2,&f); does the same for example. -- cfairles at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[c++0x] ICE when too many |[c++0x] ICE when function |arguments given to auto |type given as extra argument |return type function |to auto return type function http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38597