Bug 57650 - sstream compile warning
Summary: sstream compile warning
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: libstdc++
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-12-18 10:10 UTC by Albert Strasheim
Modified: 2007-04-18 16:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-01 15:29:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Albert Strasheim 2001-12-18 10:10:43 UTC
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);
 }

Comment 1 Benjamin Kosnik 2004-10-01 15:29:02 UTC
Fixed in gcc-3.3, gcc-3.4.


Note You need to log in before you can comment on or make changes to this bug.