[Bug c++/51352] g++ can't pass variable-length array as a function argument
jvgreen at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 30 08:43:00 GMT 2011
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.)
More information about the Gcc-bugs
mailing list