This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19060] 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: 31 Dec 2004 17:13:08 -0000
- Subject: [Bug libstdc++/19060] fstream.tellp() result not changed after some output
- References: <20041217182932.19060.wanderer@rsu.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wanderer at rsu dot ru 2004-12-31 17:13 -------
At this moment i can't extract simple testcase.
But problem indeed in miscompiletion.
I am use modified testcase (additionl debug output line before assert (and
iostream header include:
std::cout << "begin==" << startpos << " end==" << endpos << "\n";
Valid output: "begin==0 end==8"
Invalid output:"begin==-1 end==-1"
I bootstrap GCC from current sources with additional -save-temps flag and
compile and link libsupc++.a library and requred for my testcase .ii (renamed
to .cc) files from libstdc++ library.
Final testcase executible work without problems with valid output.
But if i compile basic_file.cc (renamed .ii version) with -O2 option
then testcase executible run terminated with invalid output "begin==-1 end==-
1" and assert fail.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19060