Standard states that invocation of the interface
basic_istream<T>::seekg(off_type& off, ios_base::seekdir dir) should call
rdbuf()->pubseekoff(off, dir), but it calls rdbuf()->pubseekoff(off, dir,
ios_base::in).

Elimination:
------------------
Replace the call  rdbuf()->pubseekoff(off, dir, ios_base::in) with 
rdbuf()->pubseekoff(off, dir).


-- 
           Summary: Invocation of the interface
                    basic_istream<T>::seekg(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=39599

Reply via email to