This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19060] New: fstream.tellp() result not changed after some output
- From: "wanderer at rsu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2004 18:29:33 -0000
- Subject: [Bug libstdc++/19060] New: fstream.tellp() result not changed after some output
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Program:
---8X---------------------------
#include<fstream>
int main() {
std::ofstream file("test.txt");
std::streampos startpos = file.tellp();
file << 10;
std::streampos endpos = file.tellp();
assert(endpos != startpos);
return 0;
}
---X8---------------------------
compile at g++ 3.4.3 and work fine, but fail after compile at g++ 4.0.0
20041215 (mainline).
Also note: if set LD_LIBRARY_PATH point to gcc_34/lib (my gcc 3.4 lib
directory)
compiled with g++ 4.0 program work fine (using old gcc 3.4 shared libraries).
I think problem in code of "libstdc++.so.6" or "libgcc_s.so.1"
Vladimir
--
Summary: fstream.tellp() result not changed after some output
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wanderer at rsu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.3-RC1
GCC host triplet: i386-unknown-freebsd5.3-RC1
GCC target triplet: i386-unknown-freebsd5.3-RC1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19060