libstdc++/4686: Output disappearing after operator<<( streambuf* )
kanze@gabi-soft.de
kanze@gabi-soft.de
Thu Oct 25 16:28:00 GMT 2001
>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 <sstream>
#include <ostream>
#include <iostream>
int
main()
{
std::istringstream i1( "3\n" ) ;
std::cout << i1.rdbuf() ;
std::cout << "4\n" ;
return 0 ;
}
More information about the Gcc-prs
mailing list