This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/3568: C++ exception handling error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: bootstrap/3568: C++ exception handling error
- From: bwh276 at sinamail dot com
- Date: 5 Jul 2001 10:01:09 -0000
- Reply-To: bwh276 at sinamail dot com
>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: