https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124109

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes the warning is correct here. Since from reading the code nVertex starts at
4 (4*2) and can increase.
The issue is here is 8 is the min number of elements for the source but in C,
it is also the max number of elements too. Even if you use 1 it is max of 1
(but GCC has an exception based on the -fstrict-flex-arrays option).

Reply via email to