Commit 49c1f7a6 by Paolo Carlini Committed by Paolo Carlini

re PR c++/63540 (Erroneous "'Derived' declares a move constructor or move…

re PR c++/63540 (Erroneous "'Derived' declares a move constructor or move assignment operator" in error.)

2019-03-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/63540
	* g++.dg/cpp0x/implicit17.C: New.

From-SVN: r269508
parent a8ce2144
2019-03-08 Paolo Carlini <paolo.carlini@oracle.com> 2019-03-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/63540
* g++.dg/cpp0x/implicit17.C: New.
2019-03-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/22149 PR c++/22149
* g++.dg/template/access29.C: New. * g++.dg/template/access29.C: New.
......
// 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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment