egcs-1.1.2: exceptions fail on i386-next-nextstep3 platform

Rex Dieter rdieter@math.unl.edu
Tue Jun 29 13:16:00 GMT 1999


Using egcs-1.1.2, exceptions result in program termination on  
i386-next-nextstep3 platform.

Here's a small example:

> cat exceptions.cc
#include <iostream.h>

class AnException {
public:
        AnException() {};
}; // end class AnException //

int main(int argc, const char* argv[]) {
        cout << "Program start" << endl;
        try {
                cout << "Now throwing an exception" << endl;
                throw AnException();
        }
        catch (AnException& ex) {
                cout << "Exception caught" << endl;
        }
        cout << "Program end" << endl;
        return 0;
} // end main //

> g++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-next-nextstep3/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> g++ exceptions.cc
> ./a.out
Program start
Now throwing an exception
IOT trap



More information about the Gcc-bugs mailing list