Re: [cc65] parser bug?

From: Oliver Schmidt <ol.sc1web.de>
Date: 2013-01-18 16:28:29
Hi,

> void main() {
>   unsigned char *a;
>   a = (unsigned char *) 1024;
>   unsigned char c;
>   c = 0;
> }

To my knowledge in C (as in contrast to C++) the definition of
variables is only allowed at the beginning of blocks. Therefore the
second snippet is supposed to fail.

Regards,
Oliver
----------------------------------------------------------------------
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 16:28:41 2013

This archive was generated by hypermail 2.1.8 : 2013-01-18 16:28:44 CET