[Top][All Lists]
[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
- [Tinycc-devel] Please support coo.h, yuanbin, 2010/06/10
- Re: [Tinycc-devel] Please support coo.h, grischka, 2010/06/10
- Re: [Tinycc-devel] Please support coo.h, yuanbin, 2010/06/11
- Re: [Tinycc-devel] Please support coo.h, shinichiro . h, 2010/06/12
- Re: [Tinycc-devel] Please support coo.h, yuanbin, 2010/06/12
- Re: [Tinycc-devel] Please support coo.h, grischka, 2010/06/13
- Re: [Tinycc-devel] Please support coo.h, yuanbin, 2010/06/14
- Re: [Tinycc-devel] Please support coo.h, grischka, 2010/06/15
- Re: [Tinycc-devel] Please support coo.h, shinichiro . h, 2010/06/16