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: eb77.C



On Feb 15, 1999, Joern Rennecke <amylaar@cygnus.co.uk> wrote:

> gcc/testsuite/g++.old-deja/g++.robertl/eb77.C uses a strstream without
> initializing it.

Huh?  Since there's no explicit initialization, it gets default
initialized, i.e., init_dynamic(0,0).

> Since the constructor for strstream is empty, this invokes undefined
> behaviour.

It is not empty, and it seems to me that it should not invoke
undefined behavior.

-- 
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