This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/39596] New: Invocation of the interface basic_ostream<char>::seekp(pos_type& pos) calls rdbuf()->pubseekpos() with wrong argument.
- From: "vmartirosyan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2009 11:16:52 -0000
- Subject: [Bug libstdc++/39596] New: Invocation of the interface basic_ostream<char>::seekp(pos_type& pos) calls rdbuf()->pubseekpos() with wrong argument.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Detailed Description
---------------------------------
Invocation of the interface basic_ostream<char>::seekp(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_ostream<char>::seekp(pos_type& pos) calls rdbuf()-
>pubseekpos() 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=39596