public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] Fix testsuite/g++.dg/cpp1y/constexpr-66093.C execution failure...
@ 2022-07-12 10:36 Alex Coplan
0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2022-07-12 10:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:792bde5aca116d971319fcb0d5fe1f2fc3655c8c
commit 792bde5aca116d971319fcb0d5fe1f2fc3655c8c
Author: Jerome Lambourg <lambourg@adacore.com>
Date: Tue Jan 5 04:47:41 2021 -0300
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.
(cherry picked from commit 560d9915762d61bd1027259ecf55339f40a0a1de)
Diff:
---
gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
index ad3169210d2..3d742cfebd8 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-12 10:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 10:36 [gcc(refs/vendors/ARM/heads/morello)] Fix testsuite/g++.dg/cpp1y/constexpr-66093.C execution failure Alex Coplan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).