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++/47475] [C++0x] Static member function template of class variadic template can't be called from the inside


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


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