From mboxrd@z Thu Jan 1 00:00:00 1970 From: Craig Rodrigues To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: libstdc++/4534 Date: Sun, 14 Oct 2001 12:06:00 -0000 Message-id: <20011014190601.15049.qmail@sourceware.cygnus.com> X-SW-Source: 2001-10/msg00285.html List-Id: The following reply was made to PR libstdc++/4534; it has been noted by GNATS. From: Craig Rodrigues To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, gcc-gnats@gcc.gnu.org, brendan@zen.org, rodrigc@gcc.gnu.org Subject: Re: libstdc++/4534 Date: Sun, 14 Oct 2001 15:00:18 -0400 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4534&database=gcc Hi, Please apply to mainline, to address PR 4534: "Section 23.1.1.13 of the standard says the member function at() of sequences should throw out_of_range if n >= a.size(), not range_error as is currently thrown in bits/stl_bvector.h's _M_range_check method." 2001-10-09 Brendan Kehoe * stl_bvector.h (vector::_M_range_check): Fix to throw out_of_range, not range_error, thus sayeth $23.1.1.13. Index: include/bits/stl_bvector.h =================================================================== RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/stl_bvector.h,v retrieving revision 1.5 diff -u -p -r1.5 stl_bvector.h --- stl_bvector.h 2001/06/27 17:09:52 1.5 +++ stl_bvector.h 2001/10/10 11:44:31 @@ -485,7 +485,7 @@ template void _M_range_check(size_type __n) const { if (__n >= this->size()) - __throw_range_error("vector"); + __throw_out_of_range("vector"); } reference at(size_type __n) -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@mediaone.net