Bug in egcs 1.1 -fno-rtti + exception = segfault
Jason Merrill
jason@cygnus.com
Wed Oct 28 18:51:00 GMT 1998
>>>>> 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
More information about the Gcc-bugs
mailing list