]> git.ipfire.org Git - thirdparty/gcc.git/commit
cp: Fix another assumption in the FE about constant vector indices.
authorTejas Belagod <tejas.belagod@arm.com>
Wed, 30 Oct 2024 11:07:16 +0000 (16:37 +0530)
committerTejas Belagod <tejas.belagod@arm.com>
Fri, 29 Nov 2024 11:36:46 +0000 (17:06 +0530)
commitb5df3eefd70064973fc5cb41c391d71781b8d3ac
tree972f027495d0fd9e64a6b392c52e358d6e90c8fb
parent6338716fe8dc8edd2807a8da02622c0fa151f2eb
cp: Fix another assumption in the FE about constant vector indices.

This patch adds a change to handle VLA's poly indices.

gcc/cp/ChangeLog:

* decl.cc (reshape_init_array_1): Handle poly indices.

gcc/testsuite/ChangeLog:

* g++.dg/ext/sve-sizeless-1.C: Update test to test initialize error.
* g++.dg/ext/sve-sizeless-2.C: Likewise.
gcc/cp/decl.cc
gcc/testsuite/g++.dg/ext/sve-sizeless-1.C
gcc/testsuite/g++.dg/ext/sve-sizeless-2.C