PR c++/71972 - constexpr array self-modification
authorJason Merrill <jason@redhat.com>
Mon, 25 Jul 2016 18:32:06 +0000 (14:32 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 Jul 2016 18:32:06 +0000 (14:32 -0400)
commitfd2bfee51ee9b63869652ed0812df1d34aaca093
tree647173b944875bc4a7a8bba84ad1fcdd667bd9b9
parent8d6833755c1260d4a3f388b033549c0d140e7d89
PR c++/71972 - constexpr array self-modification

* constexpr.c (cxx_eval_array_reference): Handle looking for the
value of an element we're currently modifying.

From-SVN: r238729
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-array5.C [new file with mode: 0644]