This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [PATCH] Fix libstdc++/9523 (and more)
- From: Pétur Runólfsson <peturr02 at ru dot is>
- To: "Benjamin Kosnik" <bkoz at redhat dot com>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 28 Apr 2003 19:25:21 -0000
- Subject: RE: [PATCH] Fix libstdc++/9523 (and more)
> >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