...and this code produces an error with 2.12.9, but not 2.12.0: void fn() {} typedef void (*FN)(void); const FN fns[] = { fn }; test.c(3): Error: Incompatible types The error disappears when I remove the const. Johan --- http://www.littlesounddj.com On Tue, Jul 28, 2009 at 1:44 PM, Johan Kotlinski<kotlinski@gmail.com> wrote: > For the following program: > > void fn() {} > > void main() > { > unsigned char a; > (a ? fn : fn)(); > } > > ....I get this error with 2.12.0 and 2.12.9: > > test.c(6): Error: Incompatible types > cc65: Check failed: SPtr != 0, file `xsprintf.c', line 571 > > Cheers, > Johan > ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Jul 28 13:58:17 2009
This archive was generated by hypermail 2.1.8 : 2009-07-28 13:58:19 CEST