Re: [cc65] Incomplete type declaration for structures

From: <davide.bologna1katamail.com>
Date: 2005-05-29 22:29:19
On 2005.05.29 14:10 Ullrich von Bassewitz wrote:
> >
> >     struct y;
> >     struct x { struct y *py; };
> >     struct y { struct x *px; };
> 
> Above code compiles without problems with a patched 2.10.1 compiler
> and with
> the current snapshot. If you're using the latest version, please
> supply a
> small(!) piece of code that shows the error, otherwise I would suggest
> that
> you upgrade the compiler.
> 

I did some testing and I was surprised the simple example compiled; I 
didn't tested it, i wrote it to simplify the description.
The point is I was missing the * in the struct x { struct y *py; }; 
declaration, which is illegal, as far as i know. Im am surprised gcc 
compiles this.

I had to admit I did not a serious test and even worst i bugged Ullrich 
and his work about my error.
Absolutly I have to present my excuses.

Regards.
Davide
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun May 29 22:29:32 2005

This archive was generated by hypermail 2.1.8 : 2005-05-29 22:29:36 CEST