From mboxrd@z Thu Jan 1 00:00:00 1970 From: kanze@gabi-soft.de To: gcc-gnats@gcc.gnu.org Subject: libstdc++/4686: Output disappearing after operator<<( streambuf* ) Date: Thu, 25 Oct 2001 16:28:00 -0000 Message-id: <20011025174935.25591.qmail@sourceware.cygnus.com> X-SW-Source: 2001-10/msg00516.html List-Id: >Number: 4686 >Category: libstdc++ >Synopsis: Output disappearing after operator<<( streambuf* ) >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Oct 25 16:26:27 PDT 2001 >Closed-Date: >Last-Modified: >Originator: James Kanze >Release: g++ 3.0.0 >Organization: >Environment: dxcs8h@~/tmp/gcc (66): uname -a SunOS dxcs8h 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-60 dxcs8h@~/tmp/gcc (67): g++3 -v Reading specs from /opt/global/pkg/gcc-3.0.0_threads/lib/gcc-lib/sparc-sun-solaris2.7/3.0/specs Configured with: ./configure --prefix=/opt/global/pkg/gcc-3.0.0_threads --enable-threads=posix Thread model: posix gcc version 3.0 g++: No input files >Description: Output using operator<<( streambuf * ) has strange behavior. In the example, the following output fails to occur. >How-To-Repeat: Just compile and look at output. The there is no trace of the second output statement. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="ordbuf.cc" Content-Disposition: inline; filename="ordbuf.cc" #include #include #include int main() { std::istringstream i1( "3\n" ) ; std::cout << i1.rdbuf() ; std::cout << "4\n" ; return 0 ; }