This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69995] [5/6 Regression] [C++14] Invalid result when evaluating constexpr function
- 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, 29 Feb 2016 14:49:49 +0000
- Subject: [Bug c++/69995] [5/6 Regression] [C++14] Invalid result when evaluating constexpr function
- Auto-submitted: auto-generated
- References: <bug-69995-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69995
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 29 14:49:17 2016
New Revision: 233813
URL: https://gcc.gnu.org/viewcvs?rev=233813&root=gcc&view=rev
Log:
PR c++/69995
* constexpr.c (cxx_eval_store_expression): Unshare init.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-array3.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/constexpr.c