From: Paolo Carlini Date: Fri, 8 Mar 2019 21:22:07 +0000 (+0000) Subject: re PR c++/63540 (Erroneous "'Derived' declares a move constructor or move assignment... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49c1f7a6c54fe16b603d409df4974e584efbe2ea;p=gcc.git 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 --- 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);