This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80077] [7 Regression] constant expressions and -fno-elide-constructors
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Mar 2017 02:23:08 +0000
- Subject: [Bug c++/80077] [7 Regression] constant expressions and -fno-elide-constructors
- Auto-submitted: auto-generated
- References: <bug-80077-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80077
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Mar 20 02:22:36 2017
New Revision: 246272
URL: https://gcc.gnu.org/viewcvs?rev=246272&root=gcc&view=rev
Log:
PR c++/80077 - error with constexpr and -fno-elide-constructors.
* constexpr.c (cxx_eval_call_expression): Set ctx->call while
expanding trivial constructor.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-trivial3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c