re PR c++/68754 (Explicitly defaulted constexpr assignment operator fails to compile)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 2 Jun 2017 23:27:22 +0000 (23:27 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 2 Jun 2017 23:27:22 +0000 (23:27 +0000)
2017-06-02  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r248847

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C [new file with mode: 0644]

index 9af9ca8c667f0c46e32697c7889d3ecbef2dfb73..d150f8686ee02db75cd1d36776ff1135974eba51 100644 (file)
@@ -1,6 +1,9 @@
-2017-06-02  Carl Love  <cel@us.ibm.com>
+2017-06-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/68754
+       * g++.dg/cpp1y/constexpr-68754.C: New.
 
-gcc/testsuite/ChangeLog:
+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.
diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C
new file mode 100644 (file)
index 0000000..e72acb1
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/68754
+// { dg-do compile { target c++14 } }
+
+struct base { };
+struct derived : base {
+  constexpr derived& operator=(derived const&) = default;
+};