This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49988] constexpr on ctor invokes improper initialization
- 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: Sat, 6 Aug 2011 04:39:11 +0000
- Subject: [Bug c++/49988] constexpr on ctor invokes improper initialization
- Auto-submitted: auto-generated
- References: <bug-49988-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-06 04:38:11 UTC ---
Author: jason
Date: Sat Aug 6 04:38:08 2011
New Revision: 177500
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177500
Log:
PR c++/49988
* semantics.c (cxx_eval_array_reference): Handle failure to
reduce the array operand to something we can work with.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg3.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog