From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7810) id 29C313857C7D; Tue, 12 Jul 2022 10:36:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29C313857C7D Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alex Coplan To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] Fix testsuite/g++.dg/cpp1y/constexpr-66093.C execution failure... X-Act-Checkin: gcc X-Git-Author: Jerome Lambourg X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 923d7b49cbd7a4e77334d5b7e3e184e85800063d X-Git-Newrev: 792bde5aca116d971319fcb0d5fe1f2fc3655c8c Message-Id: <20220712103649.29C313857C7D@sourceware.org> Date: Tue, 12 Jul 2022 10:36:49 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2022 10:36:49 -0000 https://gcc.gnu.org/g:792bde5aca116d971319fcb0d5fe1f2fc3655c8c commit 792bde5aca116d971319fcb0d5fe1f2fc3655c8c Author: Jerome Lambourg 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;