This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] 24
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] 24
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 26 Jun 2001 02:39:46 -0700
Fixes to the testsuite, g++ unxexpected fails.
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_iterator.h (istream_iterator::operator->): Fix
return values.
(istream_iterator::operator*): Same.
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
Alexandre Petit-Bianco <apbianco@redhat.com>
* testsuite/21_strings/element_access.cc (test01): Chill Out Cafe
is on 41st, not 14th.
Index: include/bits/stl_iterator.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/stl_iterator.h,v
retrieving revision 1.7
diff -c -p -r1.7 stl_iterator.h
*** stl_iterator.h 2001/06/26 07:01:09 1.7
--- stl_iterator.h 2001/06/26 09:38:14
*************** namespace std
*** 295,304 ****
istream_iterator() : _M_stream(0), _M_ok(false) {}
istream_iterator(istream_type& __s) : _M_stream(&__s) { _M_read(); }
! reference
operator*() const { return _M_value; }
! pointer
operator->() const { return &(operator*()); }
istream_iterator&
--- 295,304 ----
istream_iterator() : _M_stream(0), _M_ok(false) {}
istream_iterator(istream_type& __s) : _M_stream(&__s) { _M_read(); }
! const _Tp&
operator*() const { return _M_value; }
! const _Tp*
operator->() const { return &(operator*()); }
istream_iterator&
Index: testsuite/21_strings/element_access.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/21_strings/element_access.cc,v
retrieving revision 1.3
diff -c -p -r1.3 element_access.cc
*** element_access.cc 2001/05/12 16:51:41 1.3
--- element_access.cc 2001/06/26 09:38:16
*************** bool test01(void)
*** 34,40 ****
csize_type csz01, csz02;
const std::string str01("tamarindo, costa rica");
! std::string str02("14th street beach, capitola, california");
std::string str03;
// const_reference operator[] (size_type pos) const;
--- 34,40 ----
csize_type csz01, csz02;
const std::string str01("tamarindo, costa rica");
! std::string str02("41st street beach, capitola, california");
std::string str03;
// const_reference operator[] (size_type pos) const;
*************** bool test01(void)
*** 49,55 ****
ref ref1 = str02[csz02 - 1];
VERIFY( ref1 == 'a' );
ref ref2 = str02[1];
! VERIFY( ref2 == '4' );
// const_reference at(size_type pos) const;
csz01 = str01.size();
--- 49,55 ----
ref ref1 = str02[csz02 - 1];
VERIFY( ref1 == 'a' );
ref ref2 = str02[1];
! VERIFY( ref2 == '1' );
// const_reference at(size_type pos) const;
csz01 = str01.size();