comparison gcc/testsuite/g++.dg/cpp0x/implicit17.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // PR c++/63540
2 // { dg-do compile { target c++11 } }
3
4 template <typename T,
5 typename = decltype(*static_cast<T*>(0) = 0)> int break_it();
6 template <typename> int break_it();
7
8 struct Base {
9 Base(const Base &);
10 void operator=(Base &&);
11 };
12
13 struct Derived : Base {
14 using Base::operator=;
15 };
16
17 int a = break_it<Derived>();
18 Derived v(v);