public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/2921: exception::what() return '9exception', not 'exception'
@ 2001-06-07 14:16 pme
  0 siblings, 0 replies; 2+ messages in thread
From: pme @ 2001-06-07 14:16 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pere

Synopsis: exception::what() return '9exception', not 'exception'

State-Changed-From-To: analyzed->closed
State-Changed-By: pme
State-Changed-When: Thu Jun  7 14:16:49 2001
State-Changed-Why:
    This seems to be working fine in 3.0.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2921&database=gcc


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

* libstdc++/2921: exception::what() return '9exception', not 'exception'
@ 2001-05-24  1:26 pere
  0 siblings, 0 replies; 2+ messages in thread
From: pere @ 2001-05-24  1:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2921
>Category:       libstdc++
>Synopsis:       exception::what() return '9exception', not 'exception'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 24 01:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Petter Reinholdtsen
>Release:        gcc-2.95.2
>Organization:
>Environment:
Debian GNU/Linux 2.2
>Description:
std::exception::what() returns a string describing the
exception.  The string returned is '9exception', while I
believe it should be 'exception'.  Compare this to std::bad_alloc::what() which return 'bad_alloc'.
>How-To-Repeat:
Compile and run the enclosed program and check the output:

  Catched: 9exception
  Catched: bad_alloc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="gcc-exception-test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gcc-exception-test.cpp"

LyoKCiAgJSBnY2MgLS12ZXJzaW9uCiAgMi45NS4yCiAgJSBjKysgLW8gZ2NjLWV4Y2VwdGlvbi10
ZXN0IGdjYy1leGNlcHRpb24tdGVzdC5jcHAKICAlIC4vZ2NjLWV4Y2VwdGlvbi10ZXN0CiAgQ2F0
Y2hlZDogOWV4Y2VwdGlvbgogIENhdGNoZWQ6IGJhZF9hbGxvYwogICUKCiAgSSBFeHBlY3RlZCAn
ZXhjZXB0aW9uJywgbm90ICc5ZXhjZXB0aW9uJy4KICovCgojaW5jbHVkZSA8ZXhjZXB0aW9uPgoj
aW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDxuZXc+Cgp0ZW1wbGF0ZSA8Y2xhc3MgVD4Kdm9p
ZCB0aHJvd2NhdGNoKFQgdCkKewogIHRyeSB7CiAgICB0aHJvdyBUKCk7CiAgfSBjYXRjaCAoY29u
c3Qgc3RkOjpleGNlcHRpb24gJmUpIHsKICAgIHN0ZDo6Y291dCA8PCAiQ2F0Y2hlZDogIiA8PCBl
LndoYXQoKSA8PCBzdGQ6OmVuZGw7CiAgfQp9CgppbnQKbWFpbigpCnsKICB0aHJvd2NhdGNoKHN0
ZDo6ZXhjZXB0aW9uKCkpOwogIHRocm93Y2F0Y2goc3RkOjpiYWRfYWxsb2MoKSk7CiAgcmV0dXJu
IDA7Cn0K


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

end of thread, other threads:[~2001-06-07 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-07 14:16 libstdc++/2921: exception::what() return '9exception', not 'exception' pme
  -- strict thread matches above, loose matches on Subject: below --
2001-05-24  1:26 pere

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