This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8210: Throwing exception (with handler) causes program abort
- From: jeff at crystalclearsoftware dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 13 Oct 2002 14:28:43 -0000
- Subject: c++/8210: Throwing exception (with handler) causes program abort
- Reply-to: jeff at crystalclearsoftware dot com
>Number: 8210
>Category: c++
>Synopsis: Throwing exception (with handler) causes program abort
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 13 07:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jeff Garland
>Release: 3.2
>Organization:
>Environment:
Mandrake Linux 9
>Description:
Tne following program demonstrates the failure. Instead of printing "Good" the program aborts.
#include <iostream>
struct range_error {}; //exception type
int main()
{
try {
throw range_error();
}
catch (range_error& e) {
std::cout << "Good" << std::endl;
}
return 0;
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: