Message-ID: <3BC69E9E.3A6A031C@acm.org> From: Eric Sosman X-Mailer: Mozilla 4.72 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: posible bug in GCC syntax checker? References: <9q4nm9$lc9$1 AT plutonium DOT btinternet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 Date: Fri, 12 Oct 2001 12:35:34 GMT NNTP-Posting-Host: 12.91.1.58 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1002890134 12.91.1.58 (Fri, 12 Oct 2001 12:35:34 GMT) NNTP-Posting-Date: Fri, 12 Oct 2001 12:35:34 GMT Organization: AT&T Worldnet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Tim Nicholson wrote: > > I think I have found a bug in the GCC syntax checker! When I compile the > following code, I get the message... > > Warning: Passing arg 1 of draw_item from incompatible pointer type > [...] > void draw_item(const int point_array[ ][2]); > [...] > int main(void) > { > int item[5][2]; > [...] > draw_item(item); This confusing issue happens to be the topic of a current thread over in comp.lang.c; see Kaz Kylheku's contribution for the best (but still bewildering, to me at least) explanation to date. -- Eric Sosman esosman AT acm DOT org