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]

Re: libstdc++/6746: ifstream::readsome() always returns zero


Synopsis: ifstream::readsome() always returns zero

State-Changed-From-To: feedback->analyzed
State-Changed-By: paolo
State-Changed-When: Mon May 20 13:39:25 2002
State-Changed-Why:
    Confirmed. The following is a minimal testcase (6746.cc):
    #include <fstream>
    #include <cassert>
    
    int main()
    {
      char str[50];
      std::streamsize count;
      std::ifstream file("6746.cc");
    
      count = file.readsome(str, 50);
    
      assert( count == 50 );
    }

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6746


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