aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/ref6.C
blob: 2e1254ae35b27fc9294ee173034b1730527f6d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/53816

template <typename T>
struct S { int v () const; };
template <typename T>
struct V : public S<T> {};
struct U
{
  V<int> v;
  template<typename T>
  struct W
  {
    W (U const &x) { V<int> const &v = x.v; v.v(); }
  };
};