re PR c++/71504 ([C++11] constexpr fails with multidimensional arrays)
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Oct 2019 06:56:02 +0000 (08:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Oct 2019 06:56:02 +0000 (08:56 +0200)
commit0fe2ae2902e9e65a4ce6cf56b3c34c02677d33a4
treeda09480f193d690523899f897466bdd507134d52
parent708935b2b44663505a1cccf1a4aec80b310d0052
re PR c++/71504 ([C++11] constexpr fails with multidimensional arrays)

PR c++/71504
* constexpr.c (cxx_fold_indirect_ref_1): New function.
(cxx_fold_indirect_ref): Use it.

* g++.dg/cpp0x/constexpr-array21.C: New test.
* g++.dg/cpp1y/constexpr-array7.C: New test.
* g++.dg/cpp1z/constexpr-array1.C: New test.

2019-10-04  Jason Merrill  <jason@redhat.com>

PR c++/71504
* g++.dg/cpp0x/constexpr-array20.C: New test.

From-SVN: r276563
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-array20.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-array21.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/constexpr-array7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/constexpr-array1.C [new file with mode: 0644]