[Bug libstdc++/39599] New: Invocation of the interface basic_istream<T>::seekg(off_type& off, ios_base::seekdir dir) calls rdbuf()->pubseekoff(off, dir) with wrong third argument.

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


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



More information about the Gcc-bugs mailing list