This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51352] g++ can't pass variable-length array as a function argument
- From: "jvgreen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Nov 2011 06:23:40 +0000
- Subject: [Bug c++/51352] g++ can't pass variable-length array as a function argument
- Auto-submitted: auto-generated
- References: <bug-51352-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352
--- Comment #1 from Joshua Green <jvgreen at gmail dot com> 2011-11-30 06:23:40 UTC ---
(Of course, compiling under gcc requires replacing
#include <iostream>
#include <cstdlib>
with
#include <stdio.h>
#include <stdlib.h>
and
std::cout << array[i][j] << "\n";
with
printf("%d\n", array[i][j]);
but I suppose that that was implied.)