This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47475] [C++0x] Static member function template of class variadic template can't be called from the inside
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 16:47:57 +0000
- Subject: [Bug c++/47475] [C++0x] Static member function template of class variadic template can't be called from the inside
- Auto-submitted: auto-generated
- References: <bug-47475-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47475
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-26 16:47:53 UTC ---
Note that this is not related to variadic templates, this gives the same error
using no C++0x features:
template<typename T, typename Ts>
struct test;
template<>
struct test<void, void>
{
template<typename>
static void f()
{
}
};
template<typename T, typename Ts>
struct test
{
template<typename U>
static void f()
{
test<void, Ts>::f<U>(); //compiler error here
}
};