From: Paolo Carlini Date: Fri, 2 Jun 2017 23:27:22 +0000 (+0000) Subject: re PR c++/68754 (Explicitly defaulted constexpr assignment operator fails to compile) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd280745eeec1e7737595343c5b8497d28d7b78b;p=gcc.git re PR c++/68754 (Explicitly defaulted constexpr assignment operator fails to compile) 2017-06-02 Paolo Carlini PR c++/68754 * g++.dg/cpp1y/constexpr-68754.C: New. From-SVN: r248847 --- 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 + + PR c++/68754 + * g++.dg/cpp1y/constexpr-68754.C: New. -gcc/testsuite/ChangeLog: +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; +};