This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Dumb gcc/C question
- To: gcc at gcc dot gnu dot org
- Subject: Dumb gcc/C question
- From: David Ronis <ronis at onsager dot chem dot mcgill dot ca>
- Date: Fri, 25 Aug 2000 14:30:25 -0400 (EDT)
- Reply-To: David Ronis <ronis at onsager dot chem dot mcgill dot ca>
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