This is the mail archive of the
libstdc++-prs@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: libstdc++/17: cout is not a real ostream; dynamic_cast SEGV's as a result
- To: nobody at sourceware dot cygnus dot com
- Subject: Re: libstdc++/17: cout is not a real ostream; dynamic_cast SEGV's as a result
- From: Paul Barton-Davis <pbd at Op dot Net>
- Date: 4 Dec 1999 05:37:00 -0000
- Cc: libstdc++-prs at sourceware dot cygnus dot com,
- Reply-To: Paul Barton-Davis <pbd at Op dot Net>
The following reply was made to PR libstdc++/17; it has been noted by GNATS.
From: Paul Barton-Davis <pbd@Op.Net>
To: Benjamin Kosnik <bkoz@cygnus.com>
Cc: libstdc++-gnats@sourceware.cygnus.com
Subject: Re: libstdc++/17: cout is not a real ostream; dynamic_cast SEGV's as a result
Date: Sat, 04 Dec 1999 00:35:55 -0500
Also:
>that's what this database is for. . . . if you checkout the CVS sources,
>you'll see that cout is indeed a "real" ostream
When i use the web-browsing access to the CVS source, i find this in
v1.1 of stdstream.cc:
----------------------------------------------------------
struct _fake_ostream {
....
};
.
.
.
#ifdef __GNUC__
#define OSTREAM_DEF(NAME, SBUF, TIE, EXTRA_FLAGS, ASM) \
_fake_ostream NAME ASM = { {&NAME.base}, {STD_STR(SBUF, TIE, EXTRA_FLAGS) }};
#else
#define OSTREAM_DEF(NAME, SBUF, TIE, EXTRA_FLAGS) \
_fake_ostream NAME = { {0, &NAME.base}, {STD_STR(SBUF, TIE, EXTRA_FLAGS) }};
#endif
.
.
.
OSTREAM_DEF(cout, COUT_SBUF, NULL, 0, )
----------------------------------------------------------
what i am not seeing ?
--p