This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-fno-rtti and exception handling
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -fno-rtti and exception handling
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 16 Mar 2000 10:15:36 +0100
The documentation of -fno-rtti claims that exception handling will
generate appropriate data structures even if -fno-rtti is specified.
That claim is incorrect; if
void foo()
{
throw "Hello";
}
int main()
{
try{
foo();
}catch(const char* s){
}
}
is compiled with -fno-rtti, the resulting program crashes in
__is_pointer.
Is that a documentation error, or has gcc lost this capability
somewhen? What should be the correct behaviour?
Martin