Subject: try/throw/catch problems?
To: None <port-amd64@netbsd.org>
From: Richard Rauch <rkr@olib.org>
List: port-amd64
Date: 03/16/2004 22:13:38
Are there problems with try/throw/catch on NetBSD/amd64?

Or am I just special?  (^&

I think that the following should work, but on my AMD64 box, it
dies (it runs on a NetBSD/i386 1.6 box):

#include <iostream>
using namespace std;

void foo (void)
{
    throw "Catch me if you can.";
}

int main (int argc, char **argv)
{
    try
    {
        foo ();
    }
    catch (const char *msg)
    {
        cout << msg;
    }
    return 0;
}


Known issue?  GCC problem?  Or AMD64 issue?  Should I file a PR?

-- 
  "I probably don't know what I'm talking about."  http://www.olib.org/~rkr/