This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]