view gcc/testsuite/g++.dg/cpp0x/implicit17.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

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