public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/8096: deque::at() throws std::range_error instead of std::out_of_range
@ 2002-10-01 13:52 paolo
  0 siblings, 0 replies; 4+ messages in thread
From: paolo @ 2002-10-01 13:52 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, johnb, paolo, pme

Synopsis: deque::at() throws std::range_error instead of std::out_of_range

Responsible-Changed-From-To: paolo->pme
Responsible-Changed-By: paolo
Responsible-Changed-When: Tue Oct  1 13:52:55 2002
Responsible-Changed-Why:
    Phil is going to fix it for 3.2.1 too.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8096


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/8096: deque::at() throws std::range_error instead of std::out_of_range
@ 2002-10-01 18:00 pme
  0 siblings, 0 replies; 4+ messages in thread
From: pme @ 2002-10-01 18:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, johnb, pme

Synopsis: deque::at() throws std::range_error instead of std::out_of_range

State-Changed-From-To: analyzed->closed
State-Changed-By: pme
State-Changed-When: Tue Oct  1 18:00:03 2002
State-Changed-Why:
    
    Fixed thusly:
    
        http://gcc.gnu.org/ml/libstdc++/2002-10/msg00002.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8096


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/8096: deque::at() throws std::range_error instead of std::out_of_range
@ 2002-09-30 11:53 paolo
  0 siblings, 0 replies; 4+ messages in thread
From: paolo @ 2002-09-30 11:53 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, johnb, nobody, paolo

Synopsis: deque::at() throws std::range_error instead of std::out_of_range

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Mon Sep 30 11:53:39 2002
Responsible-Changed-Why:
    Analyzed.
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Mon Sep 30 11:53:39 2002
State-Changed-Why:
    Already fixed for 3.3, still present in the 3_2-branch:
    this is not a regression, therefore probably will not be
    fixed in the branch.
    Thanks for your report, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8096


^ permalink raw reply	[flat|nested] 4+ messages in thread

* libstdc++/8096: deque::at() throws std::range_error instead of std::out_of_range
@ 2002-09-30  7:36 johnb
  0 siblings, 0 replies; 4+ messages in thread
From: johnb @ 2002-09-30  7:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8096
>Category:       libstdc++
>Synopsis:       deque::at() throws std::range_error instead of std::out_of_range
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 30 07:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     johnb@stl.sarov.ru (Eugeny Belov)
>Release:        gcc v3.2
>Organization:
>Environment:
Red Hat 8.0 beta (7.3.94)
>Description:
According to C++ ISO/IEC 14882 Standard , see 23.1.1.13, the deque::at() should throw out_of_range exception if there is a bounds violation. Instead of out_of_range it throws range_error exception. See the testcase.
>How-To-Repeat:
Compile testcase with g++ 3.2 and run it, You`ll see the Failed message.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test232.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test232.cpp"

I2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8ZGVxdWU+CiNpbmNsdWRlIDxuZXc+CiNpbmNs
dWRlIDxzdGRleGNlcHQ+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdHlwZWRlZiBkZXF1ZTxjaGFy
LCAgYWxsb2NhdG9yPGNoYXI+ID4gQ29udDsKCmludCBtYWluKGludCwgY2hhciAqW10pCnsKCUNv
bnQgcTA7CglpbnQgY250ID0gMDsKCglxMC5wdXNoX2JhY2soKGNoYXIpJ2EnKTsKCXEwLnB1c2hf
YmFjaygoY2hhciknYicpOwoJcTAucG9wX2JhY2soKTsKCgl0cnkgewoJICBxMC5hdCgyKTsgCgkg
fQoJY2F0Y2ggKG91dF9vZl9yYW5nZSkKCQl7KytjbnQ7IH0KCgljYXRjaCAocmFuZ2VfZXJyb3Ip
CgkJe2NudCs9MTA7IH0KCgljYXRjaCAoLi4uKQoJCXtjbnQgKz0gMjA7IH0KCglpZiAoY250ICE9
IDEpCiAJICBwcmludGYgKCJGQUlMRUQ6IEdvdCBjbnQgPT0gJWQsIHNob3VsZCBiZSAxXG4iLGNu
dCk7CiAgICAgICAgZWxzZQogCSAgcHJpbnRmICgiUEFTU0VELlxuIik7CgkgIAogIAogIHJldHVy
biAoY250LTEpOwp9Cg==


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-02  1:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 13:52 libstdc++/8096: deque::at() throws std::range_error instead of std::out_of_range paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-10-01 18:00 pme
2002-09-30 11:53 paolo
2002-09-30  7:36 johnb

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).