egcs-19980608: SIGSEGV on Exceptions

micschne@stud.uni-frankfurt.de micschne@stud.uni-frankfurt.de
Mon Jun 15 03:51:00 GMT 1998


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...
  
  







More information about the Gcc-bugs mailing list