Re: [cc65] parser bug?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2013-01-18 17:48:17
On Fri, Jan 18, 2013 at 03:19:36PM +0000, Tilmann wrote:
> This does not:
> ---snip---
> void main() {
>   unsigned char *a;
>   a = (unsigned char *) 1024;
>   unsigned char c;
>   c = 0;
> }
> ---snip---

cc65 is mostly a C89 compiler. It has a few limitations (things that c89 has,
but cc65 has not) and a few extensions, some from c99. Intermingled
declarations and code are a c99 feature that is not implemented by cc65.

So it is by design that above code will not compile.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 Jan 18 17:48:28 2013

This archive was generated by hypermail 2.1.8 : 2013-01-18 17:48:32 CET