Bugs item #531357, was opened at 2002-03-18 06:36
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100599&aid=531357&group_id=599
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: typedef void * problem
Initial Comment:
I am using newest snapshot from anonymous cvs, but
failed to compile following source code.
I am using sdcc with Mac OS X 10.1.3, but other
platform's sdcc generates same error messages.
t2@...$ cat void.c
typedef void *msg_t;
typedef struct {
void *buf[1];
} *good_t;
typedef struct {
msg_t buf[1];
} *bad_t;
void func(good_t good, bad_t bad, msg_t m) {
good->buf[0] = m;
bad->buf[0] = m;
}
t2@...$ sdcc -mz80 -S void.c
void.c:11: error: indirections to different types
assignment from type 'void generic * ' to type 'void'
void.c:11: error: casting from to type 'void' is
illegal from type 'void generic * ' to type 'void'
void.c:11: error: code not generated for 'func' due to
previous errors
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100599&aid=531357&group_id=599
|