Re: [cc65] Issue with an initializer using the address of an automatic variable

From: Ullrich von Bassewitz <>
Date: 2008-02-11 09:56:11

On Mon, Feb 11, 2008 at 09:48:12AM +0100, Spiro Trikaliotis wrote:
> But: i is NOT part of s, it is declared outside:

Yes, sorry. I got the code completely wrong. Maybe it was to early for me in
the morning:-)

A pointer to a local variable is not considered constant, because code must be
generated to calculate it. Since local structs get initialized by the compiler
generating a template in read only data, it is necessary that data placed
there can be evaluated at compile time. I'm not sure how much work it is to
change that.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Feb 11 09:56:21 2008

This archive was generated by hypermail 2.1.8 : 2008-02-11 09:56:24 CET