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 | ||
Current maintainer do not plan to consider bugs in such ancient compilers as gcc++-2.95. Если не планирует, зачем тогда "RESOLVED LATER"? :) Думаю, больше не будем вспоминать этот компилятор :) re Ну и ффпопу тогда. |

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