[Bug c/85997] Bogus -Wvla warning from function array argument with size expression

2018-06-04 Thread kari.nurmela at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85997 --- Comment #4 from Kari Nurmela --- Yeah, well, I'm not claiming that there is anything wrong with the code generation (especially argument passing) here, this is just a really minor issue about the conformance of -Wvla with its documentation,

[Bug c/85997] Bogus -Wvla warning from function array argument with size expression

2018-06-01 Thread kari.nurmela at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85997 --- Comment #2 from Kari Nurmela --- 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"

[Bug c/85997] New: Bogus -Wvla warning from function array argument with size expression

2018-05-30 Thread kari.nurmela at iki dot fi
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: kari.nurmela at iki dot fi Target Milestone: --- If there is an array argument in a function definition or declaration that uses a size expression (C99 6.7.5.3#7, Example 4, Example 5