This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40595] ICE trying to use sfinae with variadic template pack expansion
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2009 09:53:29 -0000
- Subject: [Bug c++/40595] ICE trying to use sfinae with variadic template pack expansion
- References: <bug-40595-5876@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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