Standard states that invocation of the interface basic_ostream<T>::seekp(off_type& off, ios_base::seekdir dir) should call rdbuf()->pubseekoff(off, dir), but it calls rdbuf()->pubseekoff(off, dir, ios_base::out).
Elimination: ------------------ Replace the call rdbuf()->pubseekoff(off, dir, ios_base::out) with rdbuf()->pubseekoff(off, dir). -- Summary: Invocation of the interface basic_ostream<T>::seekp(off_type& off, ios_base::seekdir dir) calls rdbuf()->pubseekoff(off, dir) with wrong third argument. Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vmartirosyan at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39597