Re: [cc65] Bugs?

Date view Thread view Subject view

From: Mike McCarty (jmccarty_at_ssd.usa.alcatel.com)
Date: 2002-03-05 16:52:54


On Tue, 5 Mar 2002, Piotr Fusik wrote:

[snip]

> struct s a;
> const struct s *p;
> a = *p;		// Error: Incompatible types
> 
> and here:
> 
> struct s a,b,c;
> a = b = c;	// Error: Invalid lvalue in assignment


Is this supposed to be a complete example? You have an incomplete type
struct s, which is never completed. The compiler is justified in
producing a diagnostic. It does not know how many bytes to move. The
diagnostics might perhaps be a little more indicative of the problem.

Mike
-- 
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
I can explain it for you, but I can't understand it for you.
I don't speak for Alcatel      <- They make me say that.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-03-05 16:53:10 CET