Bug 39598 - Invocation of the interface basic_istream<T>::seekg(pos_type pos) calls rdbuf()->pubseekpos(pos) with wrong argument.
Summary: Invocation of the interface basic_istream<T>::seekg(pos_type pos) calls rdbuf...
Status: RESOLVED DUPLICATE of bug 39596
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:
Depends on:
Blocks:
 
Reported: 2009-03-31 11:22 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:22:53 UTC
Invocation of the interface basic_istream<T>::seekg(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:40:39 UTC

*** This bug has been marked as a duplicate of 39596 ***