Re: [cc65] Compiler Bug (?)

From: Stefan <stefan-physik1gmx.net>
Date: 2008-03-29 17:11:45
Does it work with s={&f} ?


> Hi,
> 
> The following code produces an 'Error: Incompatible pointer types' at
> the last line when compiling with snapshot-2.11.9.20080316 without
> optimizations. If I remove the struct inside f() it compiles fine ?!?
> 
> Best, Oliver
> 
> ----------
> 
> void f(void)
> {
>  struct {
>    int i;
>  } d;
> }
> 
> struct {
>  void (* p)(void);
> } s = {f};

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Mar 29 17:12:41 2008

This archive was generated by hypermail 2.1.8 : 2008-03-29 17:12:43 CET