re PR c++/68754 (Explicitly defaulted constexpr assignment operator fails to compile)

2017-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/68754
	* g++.dg/cpp1y/constexpr-68754.C: New.

From-SVN: r248847
This commit is contained in:
Paolo Carlini 2017-06-02 23:27:22 +00:00 committed by Paolo Carlini
parent 3fd44c8a79
commit bd280745ee
2 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,9 @@
2017-06-02 Carl Love <cel@us.ibm.com>
2017-06-02 Paolo Carlini <paolo.carlini@oracle.com>
gcc/testsuite/ChangeLog:
PR c++/68754
* g++.dg/cpp1y/constexpr-68754.C: New.
2017-06-02 Carl Love <cel@us.ibm.com>
* gcc.target/powerpc/builtins-3-runnable.c: New file of runnable tests
for the new built-ins.

View File

@ -0,0 +1,7 @@
// PR c++/68754
// { dg-do compile { target c++14 } }
struct base { };
struct derived : base {
constexpr derived& operator=(derived const&) = default;
};