This is the mail archive of the gcc-help@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]

declaration of array


Using Codewarrior 8 the following code won't compile, however it will compile with GCC3.2

void a(const int b)
{
int values[b]; // b is not known at compile time
}

my question is, is this ansi c++ code or is it a feature of gcc?

Baraclese


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