Date: Tue, 10 Nov 1998 13:13:13 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Daniel Mironowicz cc: DJGPP Subject: Re: Bug in gcc ? In-Reply-To: <000401be0c83$4ab6dde0$97afccc2@d9a9a4> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Tue, 10 Nov 1998, Daniel Mironowicz wrote: > int main(void) > { > int ptr[10]; > int p = ptr[1], // check out the ending of this line > getch(); // if you remove this line gcc displays error msg > } This is not a bug in the compiler. It is porfectly valid C to say this: int p = ptr[1], getch(); This is the same as these two lines: int p = ptr[1]; int getch(); When you remove getch(), the line "int p = ptr[1]," becomes invalid C, so the compiler complains. Where's the bug?