[Bug c/98539] incorrect warning with -Wvla-parameter for unspecified bound in multi-dim array
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 5 17:49:28 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98539
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Last reconfirmed| |2021-01-05
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |msebor at gcc dot gnu.org
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The internal representation of [*] is the same as [0] so except in the most
significant bounds the warning can't distinguish between one and the other (see
pr98091). It has to pick one and it chooses to consider it a VLA. Let me
confirm this bug here and resolve pr98091 as a duplicate.
More information about the Gcc-bugs
mailing list