https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
Andrew Pinski changed:
What|Removed |Added
CC||cdkrot at yandex dot ru
--- Comment #6 f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
--- Comment #5 from Paolo Carlini ---
We have this comment in cp_parser_direct_declarator:
/* Normally, the array bound must be an integral constant
expression. However, as an extension, we allow VLAs
in func
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
Paolo Carlini changed:
What|Removed |Added
CC||ian at rhymneyconsulting dot
co.uk
---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
Andrew Pinski changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCONFIR
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
--- Comment #2 from Jonathan Wakely 2011-11-30
09:32:23 UTC ---
This might just be a documentation bug if G++ supports declaring VLAs at block
scope but not as function arguments. No version from 4.1 onwards has supported
it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
--- Comment #1 from Joshua Green 2011-11-30 06:23:40
UTC ---
(Of course, compiling under gcc requires replacing
#include
#include
with
#include
#include
and
std::cout << array[i][j] << "\n";
with
printf("%d\n", array[i][j]);
but I