PR c++/80077 - error with constexpr and -fno-elide-constructors.
authorJason Merrill <jason@redhat.com>
Mon, 20 Mar 2017 02:22:36 +0000 (22:22 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Mar 2017 02:22:36 +0000 (22:22 -0400)
commitc88169089283a22360c6a9eacbc9a3345c82598a
treed86f483036ee2e3262f53f1c23a346a2fe79077e
parenta4c9d8017d5414aab08055bdb41b0c8c810e74a0
PR c++/80077 - error with constexpr and -fno-elide-constructors.

* constexpr.c (cxx_eval_call_expression): Set ctx->call while
expanding trivial constructor.

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