public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: pere@hungry.com
To: gcc-gnats@gcc.gnu.org
Subject: libstdc++/2921: exception::what() return '9exception', not 'exception'
Date: Thu, 24 May 2001 01:26:00 -0000	[thread overview]
Message-ID: <20010524082308.16628.qmail@sourceware.cygnus.com> (raw)

>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


             reply	other threads:[~2001-05-24  1:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-24  1:26 pere [this message]
2001-06-07 14:16 pme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010524082308.16628.qmail@sourceware.cygnus.com \
    --to=pere@hungry.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).