Subject: toolchain/22673: gcc 3.3.1 c++ exception handling
To: None <gnats-bugs@gnats.netbsd.org>
From: None <john@johnrshannon.com>
List: netbsd-bugs
Date: 09/03/2003 04:35:30
>Number:         22673
>Category:       toolchain
>Synopsis:       c++ excetion handling broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 03 10:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 1.6X
>Organization:
	SAIC
>Environment:
System: NetBSD laptop.mobile.johnrshannon.com 1.6X NetBSD 1.6X (KERNEL) #28: Tue Sep 2 04:59:34 MDT 2003 root@laptop.mobile.johnrshannon.com:/usr/obj/sys/arch/i386/compile.i386/KERNEL i386
gcc (GCC) 3.3.1
Architecture: i386
Machine: i386
>Description:
	Exception handling appears to be broken with gcc 3.3.1.
>How-To-Repeat:
	Compile and execute the following program:

#include <iostream>
#include <stdexcept>

int main () {
  using namespace std;
  try
  {
     throw runtime_error("a runtime error");
  }
  catch (const exception& e)
  {
    cout << "Exception: " << e.what() << endl;
  }
  return 0;
}

>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: