summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/implicit17.C
blob: 795bc4d5dd11a189f7f0026ea7da084a5516ed1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/63540
// { dg-do compile { target c++11 } }

template <typename T,
	  typename = decltype(*static_cast<T*>(0) = 0)> int break_it();
template <typename> int break_it();

struct Base {
  Base(const Base &);
  void operator=(Base &&);
};

struct Derived : Base {
  using Base::operator=;
};

int a = break_it<Derived>();
Derived v(v);