[Bug c++/48934] no rejection reason given for SFINAE
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 9 16:30:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48934
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-09 16:24:51 UTC ---
(In reply to comment #6)
Oops, no, that's a mistake, the parameter should be named 't'
template<typename T> struct S1 { typedef char type; };
template<typename T>
typename S1<T>::type
foo(typename S1<T>::typo t)
{ return t; }
char c = foo<int>(1);
More information about the Gcc-bugs
mailing list