This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[3.2] Fix old typo in stl_deque.h, libstdc++/8096
- From: Phil Edwards <phil at jaj dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 20:58:40 -0400
- Subject: [3.2] Fix old typo in stl_deque.h, libstdc++/8096
Some months ago I fixed an oversight from somebody back at HP/SGI, from
whom we inherited the bug:
http://gcc.gnu.org/ml/libstdc++/2002-05/msg00298.html
I don't recall now why I didn't fix it on the branch. But the problem
remained in 3.2, and somebody tripped over it, resulting in PR 8096.
The minimum fix is simple and safe.
Tested athlon_mp-pc-linux-gnu, with testsuite and check-abi.
2002-10-01 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/8096
* include/bits/stl_deque.h (deque::_M_range_check): Throw
out_of_range, not range_error.
Index: include/bits/stl_deque.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/stl_deque.h,v
retrieving revision 1.17.8.2.4.1
diff -u -3 -p -r1.17.8.2.4.1 stl_deque.h
--- include/bits/stl_deque.h 26 Jul 2002 23:23:44 -0000 1.17.8.2.4.1
+++ include/bits/stl_deque.h 2 Oct 2002 00:56:26 -0000
@@ -665,7 +665,7 @@ public: // Basic
void _M_range_check(size_type __n) const {
if (__n >= this->size())
- __throw_range_error("deque");
+ __throw_out_of_range("deque");
}
reference at(size_type __n)