[Bug c++/49988] constexpr on ctor invokes improper initialization
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Aug 6 04:34:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49988
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-06 04:34:25 UTC ---
Author: jason
Date: Sat Aug 6 04:34:21 2011
New Revision: 177496
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177496
Log:
PR c++/49988
* semantics.c (cxx_eval_array_reference): Handle failure to
reduce the array operand to something we can work with.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list