c++/8210: Throwing exception (with handler) causes program abort

jeff@crystalclearsoftware.com jeff@crystalclearsoftware.com
Sun Oct 13 07:36:00 GMT 2002


>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:



More information about the Gcc-bugs mailing list