Please support coo.h

Paolo Bonzini bonzini@gnu.org
Thu Jun 10 12:38:00 GMT 2010


On 06/10/2010 10:57 AM, yuanbin wrote:
> initialization of the enum:
                         ^^^^ you mean union.
> enum {
>    int i;
>    float f;
> } t={1.5}; //t.f

The above makes no sense, what if you have int and char?

You have to say

union { ... } t = { .f = 1.5 };

and that already works in GCC.  If anything else is required by "coo", 
that means "coo" is not written in standard C.

Paolo



More information about the Gcc mailing list