tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Please support coo.h


From: Ivo
Subject: Re: [Tinycc-devel] Please support coo.h
Date: Wed, 16 Jun 2010 13:48:55 +0200
User-agent: KMail/1.9.9

On Thursday 10 June 2010, 14:42:47, yuanbin wrote:
> ----------------------------------
> initialization of the union:
> union {
>   int i;
>   float f;
> } t={1.5}; //t.f
> because of EXTENDS2 in coo.h, compiler needs
> to initialze last member of union.

As said, this is non-standard behaviour. If you want to initialize the last 
member, use:

union {
    int i;
    float f;
} t = { .f=1.5 };


--Ivo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]