[PATCH] Fix libstdc++/9523 (and more)

Pétur Runólfsson peturr02@ru.is
Mon Apr 28 19:25:00 GMT 2003


> >The standard streams (cin, cout, cerr, clog, wcin, wcout, 
> wcerr, wclog) are
> >now only constructed once when the first object of type 
> ios_base::Init is
> >constructed and are never destroyed, as required by 27.3 p2 
> and 27.4.2.1.6
> >p3.
> 
> Yes, thanks for fixing this. I'm going to add test cases for this if I
> can figure it out. I guess I can just do an address check to 
> mark this.

27_io/objects/char/5.cc was supposed to be that test, but I couldn't
figure out how to force

static Strange static_ob;

to be created before the first static ios_base::Init.

Regards,
Petur



More information about the Libstdc++ mailing list