[Bug libstdc++/39598] New: Invocation of the interface basic_istream<T>::seekg(pos_type pos) calls rdbuf()->pubseekpos(pos) with wrong argument.

vmartirosyan at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Mar 31 11:23:00 GMT 2009


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).


-- 
           Summary: Invocation of the interface
                    basic_istream<T>::seekg(pos_type pos) calls rdbuf()-
                    >pubseekpos(pos) with wrong 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=39598



More information about the Gcc-bugs mailing list