public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4534: vector<bool>::_M_range_check should throw out_of_range
@ 2001-11-04 2:55 bkoz
0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-11-04 2:55 UTC (permalink / raw)
To: bkoz, brendan, gcc-bugs, gcc-gnats, gcc-prs
Synopsis: vector<bool>::_M_range_check should throw out_of_range
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Thu Nov 15 12:38:12 2001
State-Changed-Why:
Fixed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4534&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/4534: vector<bool>::_M_range_check should throw out_of_range
@ 2001-11-04 4:03 bkoz
0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-11-04 4:03 UTC (permalink / raw)
To: bkoz; +Cc: gcc-prs
The following reply was made to PR libstdc++/4534; it has been noted by GNATS.
From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, brendan@zen.org, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:
Subject: Re: libstdc++/4534: vector<bool>::_M_range_check should throw out_of_range
Date: 15 Nov 2001 20:38:12 -0000
Synopsis: vector<bool>::_M_range_check should throw out_of_range
State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Thu Nov 15 12:38:12 2001
State-Changed-Why:
Fixed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4534&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/4534: vector<bool>::_M_range_check should throw out_of_range
@ 2001-10-25 22:34 bkoz
0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-10-25 22:34 UTC (permalink / raw)
To: bkoz, brendan, gcc-bugs, gcc-prs, nobody
Synopsis: vector<bool>::_M_range_check should throw out_of_range
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Thu Oct 25 22:34:27 2001
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Oct 25 22:34:27 2001
State-Changed-Why:
This in.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4534&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* libstdc++/4534: vector<bool>::_M_range_check should throw out_of_range
@ 2001-10-11 5:26 brendan
0 siblings, 0 replies; 4+ messages in thread
From: brendan @ 2001-10-11 5:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 4534
>Category: libstdc++
>Synopsis: vector<bool>::_M_range_check should throw out_of_range
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 11 05:26:25 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Brendan Kehoe
>Release: CVS tree
>Organization:
>Environment:
>Description:
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.
>How-To-Repeat:
>Fix:
Attached patch changes it to use __throw_out_of_range instead of __throw_range_error. This makes it also match what's implemented in stl_vector.h for the generic vector template's _M_range_check method.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="diffs-bvector.txt"
Content-Disposition: inline; filename="diffs-bvector.txt"
2001-10-09 Brendan Kehoe <brendan@zen.org>
* stl_bvector.h (vector<bool>::_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 <typename _Alloc>
void _M_range_check(size_type __n) const {
if (__n >= this->size())
- __throw_range_error("vector<bool>");
+ __throw_out_of_range("vector<bool>");
}
reference at(size_type __n)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-15 20:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-04 2:55 libstdc++/4534: vector<bool>::_M_range_check should throw out_of_range bkoz
-- strict thread matches above, loose matches on Subject: below --
2001-11-04 4:03 bkoz
2001-10-25 22:34 bkoz
2001-10-11 5:26 brendan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).