[cc65] Compiler Bug (?)

From: Oliver Schmidt <ol.sc1web.de>
Date: 2008-03-28 23:31:29
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 Fri Mar 28 23:32:33 2008

This archive was generated by hypermail 2.1.8 : 2008-03-28 23:32:35 CET