[Bug libstdc++/19060] fstream.tellp() result not changed after some output

wanderer at rsu dot ru gcc-bugzilla@gcc.gnu.org
Fri Dec 31 17:13:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list