This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49924] [C++0X] [constexpr] can't initialize a non-static member array of a literal type as a constexpr
- 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, 1 Aug 2011 21:02:07 +0000
- Subject: [Bug c++/49924] [C++0X] [constexpr] can't initialize a non-static member array of a literal type as a constexpr
- Auto-submitted: auto-generated
- References: <bug-49924-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49924
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-01 21:02:02 UTC ---
Author: jason
Date: Mon Aug 1 21:01:59 2011
New Revision: 177073
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177073
Log:
PR c++/49924
* semantics.c (cxx_eval_vec_init_1): Fix logic.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog