Bug 39596 - Invocation of the interface basic_ostream<char>::seekp(pos_type& pos) calls rdbuf()->pubseekpos() with wrong argument.
Summary: Invocation of the interface basic_ostream<char>::seekp(pos_type& pos) calls r...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.3.2
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 39597 39598 39599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-31 11:16 UTC by Vahram Martirosyan
Modified: 2009-03-31 11:40 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vahram Martirosyan 2009-03-31 11:16:51 UTC
Detailed Description
---------------------------------

Invocation of the interface basic_ostream<char>::seekp(pos_type& pos); should call rdbuf()->pubseekpos(pos), but it calls rdbuf()->pubseekpos(pos, ios_base::out).

Elimination:
------------------
Replace the call rdbuf()->pubseekpos(pos, ios_base::out) with rdbuf()->pubseekpos(pos).
Comment 1 Paolo Carlini 2009-03-31 11:39:59 UTC
We are simply implementing the resolution of DR 136 (CD1):

  http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#136

  
Comment 2 Paolo Carlini 2009-03-31 11:40:19 UTC
*** Bug 39597 has been marked as a duplicate of this bug. ***
Comment 3 Paolo Carlini 2009-03-31 11:40:39 UTC
*** Bug 39598 has been marked as a duplicate of this bug. ***
Comment 4 Paolo Carlini 2009-03-31 11:40:58 UTC
*** Bug 39599 has been marked as a duplicate of this bug. ***