public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* bootstrap/3568: C++ exception handling error
@ 2001-07-05 3:06 bwh276
0 siblings, 0 replies; only message in thread
From: bwh276 @ 2001-07-05 3:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 3568
>Category: bootstrap
>Synopsis: C++ exception handling error
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 05 03:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Mobile Era Corp.
>Release: 2.96-85
>Organization:
>Environment:
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
>Description:
#include <iostream>
int main () {
try
{
throw "Allocation failure";
}
catch (char *str)
{
cout << "Exception: " << str << endl;
}
return 0;
}
this codes above will cause program Abort or Core Dump
in RedHat 7.1
But it work in RedHAT 6.2
>How-To-Repeat:
#include <iostream>
#include <exception>
int main () {
try
{
throw "Allocation failure";
}
catch (char *str)
{
cout << "Exception: " << str << endl;
}
return 0;
}
compile the code above ,then run it in the redhat linux 7.1
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-05 3:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-05 3:06 bootstrap/3568: C++ exception handling error bwh276
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).