From bd280745eeec1e7737595343c5b8497d28d7b78b Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 2 Jun 2017 23:27:22 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 7 +++++-- gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 gcc/testsuite/g++.dg/cpp1y/constexpr-68754.C 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; +}; -- 2.30.2