[Bug c++/71504] [C++11] constexpr fails with multidimensional arrays
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 4 06:56:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71504
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 4 06:56:02 2019
New Revision: 276563
URL: https://gcc.gnu.org/viewcvs?rev=276563&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array20.C
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array21.C
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-array7.C
trunk/gcc/testsuite/g++.dg/cpp1z/constexpr-array1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list