This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-19980608: SIGSEGV on Exceptions


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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]