This is the mail archive of the gcc-patches@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]

[v3] more testsuite fixing



via private email from Gaby plus other random, unfixed bugs

2001-03-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

	* include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
	operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
	Use streamsize, not int_type.

2001-03-08  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/27_io/streambuf.cc (test06): New test, disabled at the
	moment.
	
Index: include/bits/istream.tcc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/istream.tcc,v
retrieving revision 1.10
diff -c -p -r1.10 istream.tcc
*** istream.tcc	2001/03/07 02:08:59	1.10
--- istream.tcc	2001/03/10 01:34:31
*************** namespace std {
*** 984,992 ****
  	{
  	  try {
  	    // Figure out how many characters to extract.
! 	    int_type __num = static_cast<int_type>(__in.width());
! 	    if (__num <= 0)
! 	      __num = basic_string<_CharT, _Traits>::npos;
  
  	    __streambuf_type* __sb = __in.rdbuf();
  	    const __ctype_type* __ctype = __in._M_get_fctype_ios();
--- 984,992 ----
  	{
  	  try {
  	    // Figure out how many characters to extract.
! 	    streamsize __num = __in.width();
! 	    if (__num == 0)
! 	      __num = numeric_limits<streamsize>::max();
  
  	    __streambuf_type* __sb = __in.rdbuf();
  	    const __ctype_type* __ctype = __in._M_get_fctype_ios();
Index: testsuite/27_io/streambuf.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/streambuf.cc,v
retrieving revision 1.5
diff -c -p -r1.5 streambuf.cc
*** streambuf.cc	2001/01/16 07:55:26	1.5
--- streambuf.cc	2001/03/10 01:34:32
*************** void test05()
*** 326,331 ****
--- 326,342 ----
      nsp.sputc('a');
  }
  
+ // test06
+ // XXX this should work, doesn't due to compiler limitations.
+ #if 0
+ namespace gnu 
+ {
+   class something_derived;
+ }
+ 
+ class gnu::something_derived : std::streambuf { };
+ #endif
+ 
  int main() 
  {
    test01();


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