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]

Re: declaration of array


Baraclese <webmaster@baraclese.com> writes:
[snip]
> 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?

An extension. See:
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Length.html#Variable%20Length
[snip]


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