This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67104] [5/6 regression] Constant expression factory function initializes std::array with static storage duration strangely
- 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: Wed, 12 Aug 2015 18:03:14 +0000
- Subject: [Bug c++/67104] [5/6 regression] Constant expression factory function initializes std::array with static storage duration strangely
- Auto-submitted: auto-generated
- References: <bug-67104-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67104
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Aug 12 18:02:43 2015
New Revision: 226830
URL: https://gcc.gnu.org/viewcvs?rev=226830&root=gcc&view=rev
Log:
PR c++/67104
* constexpr.c (cxx_eval_array_reference): Handle sparse
CONSTRUCTORs.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-array1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c