mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 11:40:54 +08:00
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.
This commit is contained in:
parent
bf183413c6
commit
560d991576
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user