Re: [cc65] Compiler Bug (?)

From: Ullrich von Bassewitz <>
Date: 2008-03-29 13:46:22

On Fri, Mar 28, 2008 at 11:31:29PM +0100, Oliver Schmidt wrote:
> The following code produces an 'Error: Incompatible pointer types' at
> the last line when compiling with snapshot- without
> optimizations. If I remove the struct inside f() it compiles fine ?!?

This is of course a bug which is also in 2.11.0. The type comparison code did
not only check the paramater lists, but also the struct/union tables which
will of course fail. The idea behind it was to check for struct declarations
within the parameter lists, but this has to be catched elsewhere, so I've
removed the check.

A new snapshot is currently being built.

Thanks for the report!


Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Mar 29 13:47:54 2008

This archive was generated by hypermail 2.1.8 : 2008-03-29 13:47:56 CET