<sstream> bug?

CH Lin ch.lin@prodigy.net
Mon Jul 10 18:59:00 GMT 2000


As a new member of this mailing list, please accept 
my apology if my question is inappropriate or being asked somewhere else.  
That said, consider the following program: #include 
<iostream> #include <sstream> using namespace 
std; int main() {   istringstream iss("1 2 3 4 5");   
int i;   while (iss >> i)  cout << i << 
'\n'; } using g++ 2.95.2 and libstdc++-2.90.8, the above program 
caused an infinite loop by repeating printing 5.  Is it a known bug? If so, 
is there any patch available?
 
CH



More information about the Libstdc++ mailing list