[Bug c++/38597] [c++0x] ICE when function type given as extra argument to auto return type function

cfairles at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Dec 21 14:17:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list