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]

-fno-rtti and exception handling


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

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