From 49c1f7a6c54fe16b603d409df4974e584efbe2ea Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 8 Mar 2019 21:22:07 +0000 Subject: [PATCH] re PR c++/63540 (Erroneous "'Derived' declares a move constructor or move assignment operator" in error.) 2019-03-08 Paolo Carlini PR c++/63540 * g++.dg/cpp0x/implicit17.C: New. From-SVN: r269508 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/implicit17.C | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/implicit17.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f38eb2a5aa7..0b820ac00bd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-03-08 Paolo Carlini + + PR c++/63540 + * g++.dg/cpp0x/implicit17.C: New. + 2019-03-08 Paolo Carlini PR c++/22149 diff --git a/gcc/testsuite/g++.dg/cpp0x/implicit17.C b/gcc/testsuite/g++.dg/cpp0x/implicit17.C new file mode 100644 index 00000000000..795bc4d5dd1 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/implicit17.C @@ -0,0 +1,18 @@ +// PR c++/63540 +// { dg-do compile { target c++11 } } + +template (0) = 0)> int break_it(); +template int break_it(); + +struct Base { + Base(const Base &); + void operator=(Base &&); +}; + +struct Derived : Base { + using Base::operator=; +}; + +int a = break_it(); +Derived v(v); -- 2.30.2