diff options
author | Jerome Lambourg <lambourg@adacore.com> | 2021-01-05 04:47:41 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2021-01-05 04:47:41 -0300 |
commit | 560d9915762d61bd1027259ecf55339f40a0a1de (patch) | |
tree | 1a4828c4ed8cd0bba6851c76f6f91980c856ed2a /gcc | |
parent | bf183413c6f6e745f1324e39586a65a4f9fcea3f (diff) | |
download | gcc-560d9915762d61bd1027259ecf55339f40a0a1de.zip gcc-560d9915762d61bd1027259ecf55339f40a0a1de.tar.gz gcc-560d9915762d61bd1027259ecf55339f40a0a1de.tar.bz2 |
Fix testsuite/g++.dg/cpp1y/constexpr-66093.C execution failure...
The constexpr iteration dereferenced an array element past the end of
the array.
for gcc/testsuite/ChangeLog
* g++.dg/cpp1y/constexpr-66093.C: Fix bounds issue.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C index ad31692..3d742cf 100644 --- a/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C +++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C @@ -19,7 +19,7 @@ private: constexpr A f() { A a{}; - for (int i = 1; i <= n; i++) { + for (int i = 0; i < n; i++) { a[i] = i; } return a; |