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

Dumb gcc/C question


I just used gcc-2.95.2 to compile a code with the following:

 int ncorrelations=(nchannel*3)*(nchannel*3+1)/2;
 double W[N3],C[N3][3],correlations[ncorrelations];
 
where nchannel and are declared as ints globally and calculated earlier in the 
code.

There were no warnings.   


Is this valid in general or simply a gcc extension?

David


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