[Bug c++/43382] ICE on C++0x code
chris at bubblescope dot net
gcc-bugzilla@gcc.gnu.org
Tue Mar 16 08:39:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list