diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9af9ca8c667..d150f8686ee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,9 @@ -2017-06-02 Carl Love +2017-06-02 Paolo Carlini -gcc/testsuite/ChangeLog: + PR c++/68754 + * g++.dg/cpp1y/constexpr-68754.C: New. + +2017-06-02 Carl Love * 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 index 00000000000..e72acb1baa3 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C @@ -0,0 +1,7 @@ +// PR c++/68754 +// { dg-do compile { target c++14 } } + +struct base { }; +struct derived : base { + constexpr derived& operator=(derived const&) = default; +};