This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: partly bracketed initializer ?



On Feb 20, 1999, "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de> wrote:

> I'm not so sure whether this is all Sun's fault. The initializer
> provides three zeroes, for the three fields of the outermost
> structure. How would a K&R compiler be interpreting this?

> gcc initializes three bytes of the depth-first structure, which I
> find an interesting interpretation of the initializer.

Dunno, but based on ISO C++ [dcl.init.aggr]/11, egcs seems to be right.

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil