re PR c++/49988 (constexpr on ctor invokes improper initialization)
authorJason Merrill <jason@redhat.com>
Sat, 6 Aug 2011 04:34:21 +0000 (00:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 6 Aug 2011 04:34:21 +0000 (00:34 -0400)
commit5c67ef9aef20c1be9e6214b2cf8ea86df1af5415
tree97bd80367a5e914bb18bd4b665b11472a102349b
parentde9ef71ca76369222554fcc2b4cb533c3b094289
re PR c++/49988 (constexpr on ctor invokes improper initialization)

PR c++/49988
* semantics.c (cxx_eval_array_reference): Handle failure to
reduce the array operand to something we can work with.

From-SVN: r177496
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-non-const-arg3.C [new file with mode: 0644]