Re: Can't mix native exceptions and ObjC++

2010-03-13 Thread Isamu Mogi
Hi This is a bug in GCC. obj-c++.dg/try-catch-[29].mm (objc exceptions are broken) fails with the GNU Runtime http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23616 Quick and dirty fix here: #import Foundation/NSException.h #if defined(__cplusplus) defined(__GNUC__) \ defined(GNUSTEP)

Re: Can't mix native exceptions and ObjC++

2010-03-13 Thread David Chisnall
On 13 Mar 2010, at 10:12, Isamu Mogi wrote: Hi This is a bug in GCC. obj-c++.dg/try-catch-[29].mm (objc exceptions are broken) fails with the GNU Runtime http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23616 This is a compiler bug, not a runtime bug. Objective-C++ is unmaintained in GCC

Re: Can't mix native exceptions and ObjC++

2010-03-13 Thread Andrew Pinski
Sent from my iPhone On Mar 13, 2010, at 5:17 AM, David Chisnall thera...@sucs.org wrote: On 13 Mar 2010, at 10:12, Isamu Mogi wrote: Hi This is a bug in GCC. obj-c++.dg/try-catch-[29].mm (objc exceptions are broken) fails with the GNU Runtime

Re: Can't mix native exceptions and ObjC++

2010-02-22 Thread Lucas Schnorr
Hi, I think I got the same kind of error when dealing with NSException and using g++ to compile. I have a GNUmakefile: include $(GNUSTEP_MAKEFILES)/common.make TOOL_NAME = ExceptionTest ExceptionTest_OBJC_FILES = source.m include $(GNUSTEP_MAKEFILES)/tool.make And the source.m like this

Re: Can't mix native exceptions and ObjC++

2009-01-12 Thread David Chisnall
On 11 Jan 2009, at 22:06, Larry Campbell wrote: On Jan 10, 2009, at 3:38 AM, Richard Frith-Macdonald wrote: I use native objc exceptions with gcc-4.4.0. However, if you want the uncaught exception handler to work, you need to have patched the runtime. Do you also use Obj-C++? That seems

Re: Can't mix native exceptions and ObjC++

2009-01-12 Thread Larry Campbell
On Jan 12, 2009, at 7:26 AM, David Chisnall wrote: On 11 Jan 2009, at 22:06, Larry Campbell wrote: On Jan 10, 2009, at 3:38 AM, Richard Frith-Macdonald wrote: I use native objc exceptions with gcc-4.4.0. However, if you want the uncaught exception handler to work, you need to have patched

Re: Can't mix native exceptions and ObjC++

2009-01-11 Thread Richard Frith-Macdonald
On 9 Jan 2009, at 22:08, Larry Campbell wrote: Had another go at this, with gnustep-make 2.0.8 and both gnustep- base 1.18.0 and 1.19.0, with the same result. So sad. I was tempted by the comment: 1.2 Noteworthy changes in version `1.19.0' == *

Re: Can't mix native exceptions and ObjC++

2009-01-11 Thread Larry Campbell
On Jan 10, 2009, at 3:38 AM, Richard Frith-Macdonald wrote: I use native objc exceptions with gcc-4.4.0. However, if you want the uncaught exception handler to work, you need to have patched the runtime. Do you also use Obj-C++? That seems to be my problem. If it's all Obj- C, it seems

Re: Can't mix native exceptions and ObjC++

2009-01-09 Thread Larry Campbell
Had another go at this, with gnustep-make 2.0.8 and both gnustep-base 1.18.0 and 1.19.0, with the same result. So sad. I was tempted by the comment: 1.2 Noteworthy changes in version `1.19.0' == * Support for native objective-c exceptions This is

Re: Can't mix native exceptions and ObjC++

2007-12-30 Thread Larry Campbell
On Dec 26, 2007, at 7:22 PM, Larry Campbell wrote: Before I spend a lot of time figuring out how to fix this, I thought I'd ping the list to see if anyone else has run into this. I just tried turning on native Objective-C exceptions (--enable-native-objc- exceptions to