------- Comment #2 from chris at bubblescope dot net  2010-03-16 08:38 -------
Reduced testcase:

template<class T>
struct Container
{ T f() const; };

template<class T>
T deref(const T& t)
{ return t; }


template <class T, class... Args>
auto
deref(const T& u, int r, Args... args)
-> decltype(deref(u.f(), args...))
{ return deref(u.f(), args...); }

int main(void)
{
    Container<Container<int>> v;
    deref(v,1,2);
}


-- 


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

Reply via email to