This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40595] ICE trying to use sfinae with variadic template pack expansion



------- Comment #1 from jwakely dot gcc at gmail dot com  2009-06-30 09:53 -------
(In reply to comment #0)
> I'm trying to use SFINAE to disable overloads when a function call expression
> is invalid, which is needed to implement std::bind for C++0x

N.B. the use of an invalid expression in a sizeof context is not valid in
C++03, but the SFINAE rules were extended to cover general expressions by n2634
so I believe the code is valid in C++0x (see 14.9.2 [temp.deduct] p8 in WP
n2914) and should result in a type deduction failure not a hard error.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40595


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]