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]

Re: Bug in egcs 1.1 -fno-rtti + exception = segfault


>>>>> Valentin Bonnard <bonnardv@pratique.fr> writes:

 >> They don't need each other.  Exceptions need rtti, but the converse
 >> does not hold.

 > Hum. What about:

 > typeid (* (int*) 0);

 > is it undefined behaviour or abort or does it print "Sorry 
 > exceptions are disabled" ?

It calls __throw_bad_typeid, which throws, and since you didn't compile the
throwing code with EH support, calls terminate and aborts.

Jason


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