Bug 6542

Summary: std::istream >> (unsigned int) fails
Product: Sisyphus Reporter: Gar <gar>
Component: gcc2.95-c++Assignee: Dmitry V. Levin <ldv>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description Gar 2005-04-15 16:56:59 MSD
Компилируем компилятором gcc-2.95 и запускаем следующую программу:

#include <iostream>
#include <sstream>
using namespace std;

int main()
{
  unsigned ui;
  stringstream stream;
  stream << "123";
  if  ( (stream>>ui) )
    cout << ui << endl;
  else
    cerr << "Conversion failed\n";
}

Actual Results:  
Conversion failed

Expected Results:  
123
Comment 1 Dmitry V. Levin 2005-05-11 03:00:54 MSD
Current maintainer do not plan to consider bugs in such ancient compilers as
gcc++-2.95.
Comment 2 Vitaly Lipatov 2005-11-03 10:49:26 MSK
Если не планирует, зачем тогда "RESOLVED LATER"? :) 
Думаю, больше не будем вспоминать этот компилятор :) 
Comment 3 Mikhail Gusarov 2008-02-15 23:25:20 MSK
re
Comment 4 Mikhail Gusarov 2008-02-15 23:26:59 MSK
Ну и ффпопу тогда.