This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-19980608: SIGSEGV on Exceptions
- To: "egcs-bugs at cygnus dot com" <egcs-bugs at cygnus dot com>
- Subject: egcs-19980608: SIGSEGV on Exceptions
- From: micschne at stud dot uni-frankfurt dot de
- Date: Mon, 15 Jun 1998 12:50:50 +0200 (CST)
Hello World,
My C++ compiler is
gcc version egcs-2.91.40 19980608
(gcc2 ss-980502 experimental)
The following code dealing with exceptions
sends a segmentation fault on runtime.
Compiling it with gcc2.7.2.1 works well.
Michael
<snip>
struct S {
int i;
S(int x) { i = x; };
};
int f()
{
throw S(1);
}
int main()
{
try {
return f();
} catch (S) {
return 1;
}
}
<snap>
--
Michael Schneider
m_schnei@cs.uni-frankfurt.de
sending M$ Windos the KILL sig...