Re: [cc65] testsuite - compiler bugs!

Date view Thread view Subject view

From: Marko Mäkelä (marko.makela_at_hut.fi)
Date: 2003-03-05 20:34:58


On Wed, Mar 05, 2003 at 06:19:37PM +0100, Ullrich von Bassewitz wrote:
> The strange thing (for me) is that the second initialization seems
> to be valid C. Looks like curly braces are accepted around anything when
> initializing, so even
> 
>         unsigned a = { 3 };
> 
> is valid. I will have to look at it.

I too thought that the braces are only allowed when initializing an
array, struct or union ("union { int x, char* y } a = {0}" would
assign a.x = 0; it's always the first component of the union).

	Marko
----------------------------------------------------------------------
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 : 2003-03-05 20:35:25 CET