blob: 937e0e00726d0d05d2da2db7d15f9431f9212089 [file] [log] [blame]
// PR c++/79457
// { dg-do compile { target c++11 } }
template <typename T>
class Foo
{
private:
T& goo;
template <typename R>
using S = decltype (goo[R ()]);
public:
Foo (T& goo) : goo {goo} {}
template <typename R>
S<R> boo () {}
};
int
main ()
{
int bar[] = {1, 2, 3};
Foo<decltype (bar)> foo {bar};
}