This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]