Bug 6542 - std::istream >> (unsigned int) fails
Summary: std::istream >> (unsigned int) fails
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: gcc2.95-c++ (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-15 16:56 MSD by Gar
Modified: 2008-02-15 23:27 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Ну и ффпопу тогда.