projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf18341
)
Fix testsuite/g++.dg/cpp1y/constexpr-66093.C execution failure...
author
Jerome Lambourg
<lambourg@adacore.com>
Tue, 5 Jan 2021 07:47:41 +0000
(
04:47
-0300)
committer
Alexandre Oliva
<oliva@gnu.org>
Tue, 5 Jan 2021 07:47:41 +0000
(
04:47
-0300)
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.
gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
b/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
index ad3169210d29a41137f51aceea5516a6c042cb3c..3d742cfebd83dd6ba1f8492b38318304a1511f67 100644
(file)
--- 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;