This is the mail archive of the libstdc++-prs@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++/17: cout is not a real ostream; dynamic_cast SEGV's as a result


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
 
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]