This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/85997] Bogus -Wvla warning from function array argument with size expression
- From: "kari.nurmela at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Jun 2018 17:04:10 +0000
- Subject: [Bug c/85997] Bogus -Wvla warning from function array argument with size expression
- Auto-submitted: auto-generated
- References: <bug-85997-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85997
--- Comment #2 from Kari Nurmela <kari.nurmela at iki dot fi> ---
There is only one array in the program, "array", and that is not a variable
length array. The syntax in print_array doesn't take any position on the kind
of the array, only that there are at least "count" elements, at least that what
C99 seems to say?