view gcc/testsuite/g++.dg/template/ref6.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// 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(); }
  };
};