From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 Description of problem: Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Compile a program that uses the seekoff or seekpos functions. Additional info: --- sstream~ Tue Dec 18 11:45:53 2001 +++ sstream Tue Dec 18 11:02:31 2001 @@ -256,7 +256,7 @@ return res; } -inline streampos std::stringbuf::seekoff(streamoff o, _seek_dir d, int mode=ios::in|ios::out) +inline streampos std::stringbuf::seekoff(streamoff o, _seek_dir d, int mode) { sync(); streamoff newpos = rpos; @@ -274,7 +274,7 @@ return newpos; } -inline streampos std::stringbuf::seekpos(streampos pos, int mode = ios::in|ios::out) +inline streampos std::stringbuf::seekpos(streampos pos, int mode) { return seekoff(pos, ios::beg, mode); }
Fixed in gcc-3.3, gcc-3.4.