This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in egcs 1.1 -fno-rtti + exception = segfault
- To: bonnardv at pratique dot fr (Valentin Bonnard), egcs-bugs at cygnus dot com
- Subject: Re: Bug in egcs 1.1 -fno-rtti + exception = segfault
- From: Jason Merrill <jason at cygnus dot com>
- Date: 28 Oct 1998 18:11:53 -0800
- References: <199810161831.LAA14938@iago.ultimatech.com.ultimatech.com> <363718E7.189B.cygnus.egcs.bugs@pratique.fr>
>>>>> 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