www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/03/18/21:23:55

From: Gerald Gutierrez <gutier AT intergate DOT bc DOT ca>
To: pgcc AT delorie DOT com
Subject: Exceptions & core dumps ...
Date: Wed, 17 Mar 1999 23:04:35 -0800
X-Mailer: KMail [version 1.1.0]
MIME-Version: 1.0
Message-Id: <99031723063300.00611@localhost.localdomain>
Reply-To: pgcc AT delorie DOT com

Hi all. I'm getting core dumps with the following code below using RH5.2 and
pgcc-1.1.1. It seems to work fine with egcs-1.1.2. I'm unable to try it with
egcs-1.1.1 because I don't have it.

Is this a pgcc bug, is it just my installation or am I doing something wrong?

Thanks.

#include <stdio.h>

class Alpha {
public:
    Alpha (void) throw (int) { printf ("Throwing..\n"); throw 1234; }
    ~Alpha (void) throw () { }
};

int main (int ac, char* av[])
{
    try {
        Alpha conn;
    } catch (int v) {
        printf ("Caught\n");
    }
    return 0;
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019