[Bug c++/51352] g++ can't pass variable-length array as a function argument

2021-07-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/51352] g++ can't pass variable-length array as a function argument

2014-07-12 Thread paolo.carlini at oracle dot com
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

[Bug c++/51352] g++ can't pass variable-length array as a function argument

2014-07-12 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352 Paolo Carlini changed: What|Removed |Added CC||ian at rhymneyconsulting dot co.uk ---

[Bug c++/51352] g++ can't pass variable-length array as a function argument

2011-12-14 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIR

[Bug c++/51352] g++ can't pass variable-length array as a function argument

2011-11-30 Thread redi at gcc dot gnu.org
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

[Bug c++/51352] g++ can't pass variable-length array as a function argument

2011-11-29 Thread jvgreen at gmail dot com
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