https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77945
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Sat Oct 15 21:25:55 2016 New Revision: 241204 URL: https://gcc.gnu.org/viewcvs?rev=241204&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-trivial2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/constexpr.c