This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]