[Bug c/67243] Wrong Message of -Wvla for Standard ISO C90 However Emitted with -std=c11
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 16 22:36:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67243
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Moreover, since VLAs are not an extension in C99, the text of Wvla is wrong
always for -std=c99.
void square(int num) {
int array[num];
}
With -std=c99 -Wpedantic there is no warning.
With -std=c99 -Wvla, it mentions ISO C90, which is irrelevant.
Clang just says: "variable length array used"
More information about the Gcc-bugs
mailing list