Mail Archives: djgpp/1995/12/19/09:33:10
Re this short program with an error (name omitted after `double'):-
int zxcvbnm(int i, int j, double[i][j]){int k; k=2; return 42;}
When I compiled it (with djgpp) as C++, the compiler swore at me thus:-
t$$.cc:1: `i' was not declared in this scope
t$$.cc:1: `j' was not declared in this scope
Segmentation violation in pointer 0x00000008 at d8:5cebc
EXCEPTION OCCURRED! Information dumped to core file:
"t$gccdbg"
but compiled as C the compiler said nothing.
- Raw text -