gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] Re: unions in gcc 2.95


From: Dave Denholm
Subject: [gnugo-devel] Re: unions in gcc 2.95
Date: Wed, 05 May 2004 11:07:04 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (usg-unix-v)

address@hidden (Wolfgang Manner) writes:

> hello
> i have to admit i didnt test it other than GNU compilers.
> but i thought unions inside structures is standard ?

nested unions and structures is no problem. The non-standard
features in question are
 - anonymous inner aggregates
 - initialising any field of a union other than the first


> in the worst case one would have to put back the
> ifdef __GNUC__
> which i have removed maybe too early.

I suspect so.

Making it a named union for gcc, and a struct (with the same name) for
other compilers, should fix the problem you are seeing.


dd
-- 
Dave Denholm              <address@hidden>       http://www.esmertec.com




reply via email to

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