Archive for January, 2008

std::basic_istream fixed in VC++ 9.0

Tuesday, January 29th, 2008

Stephan T. Lavavej from the Visual C++ Libraries Development Team confirmed that the bug I’ve reported recently about incorrect cast in the input operator implemented in the std::basic_istream class has been fixed. New corrected implementation is available in the C++ Standard Library shipped with latest version of the Visual C++ 9.0 compiler from the Visual Studio 2008.

A bug in std::basic_istream from Visual C++

Wednesday, January 23rd, 2008

Update: I submitted this problem to the Microsoft Connect and the Feedback ID is 323765

I believe I found a bug in Visual C++ implementation of the C++ Standard Library (AFAIR, it’s provided by Dinkumware,Ltd.). This is my first trove of that kind in Visual C++, thus I should exclaim Hurray! ;-). The C++ library discussed here is shipped with Visual C++ 8.0 compiler from the Visual Studio 2005 Professional.

Shortly, in the std::basic_istream class, implementation of input operator overloaded for unsigned long with Microsoft specific modifier __w64 consists of incorrect cast from reference to non-const to unsigned long, a nonreference type - rvalue.

(more…)