re PR c++/69509 (infinite loop compiling a VLA in a recursive constexpr function)
PR c++/69509 PR c++/69516 * constexpr.c (cxx_eval_array_reference): Give the "array subscript out of bound" error earlier. * init.c (build_vec_init): Change NE_EXPR into GT_EXPR. Update the commentary. * g++.dg/ext/constexpr-vla2.C: New test. * g++.dg/ext/constexpr-vla3.C: New test. * g++.dg/ubsan/vla-1.C: Remove dg-shouldfail. From-SVN: r232969
Showing
gcc/testsuite/g++.dg/ext/constexpr-vla2.C
0 → 100644
gcc/testsuite/g++.dg/ext/constexpr-vla3.C
0 → 100644
Please
register
or
sign in
to comment