Re: [PATCH 10/10] cp: Fix another assumption in the FE about constant vector indices.

2024-11-07 Thread Richard Sandiford
Tejas Belagod writes: > This patch adds a change to handle VLA's poly indices. > > gcc/ChangeLog: > > * cp/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

[PATCH 10/10] cp: Fix another assumption in the FE about constant vector indices.

2024-11-06 Thread Tejas Belagod
This patch adds a change to handle VLA's poly indices. gcc/ChangeLog: * cp/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