]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/g++.dg/cpp0x/constexpr-trivial2.C
PR c++/77945 - constexpr and trivial copy
authorJason Merrill <jason@redhat.com>
Sat, 15 Oct 2016 21:25:55 +0000 (17:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 15 Oct 2016 21:25:55 +0000 (17:25 -0400)
commit68d01920587dc9424344514676f8000b4add9cd4
treec94ec9046c17252cbf66d9b7b135d8464b37c85c
parentf9e9d32f79409fd2f4d7bc73d3576a33fac9b715
PR c++/77945 - constexpr and trivial copy

* constexpr.c (maybe_simplify_trivial_copy): New.
(cxx_eval_store_expression): Call it.
* call.c (build_over_call): Use unsigned char for trivial copy.

From-SVN: r241204
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-trivial2.C [new file with mode: 0644]