public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/32530] New: @try/@throw/@catch/@finally usage without -fexeceptions compiles without warning/error
@ 2007-06-28 1:44 nmiell at comcast dot net
2010-09-14 22:47 ` [Bug objc/32530] " nicola at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: nmiell at comcast dot net @ 2007-06-28 1:44 UTC (permalink / raw)
To: gcc-bugs
Test case:
$ cat except.m
#include <objc/Object.h>
@interface E: Object
@end
@implementation E
@end
int main(int argc, char* argv[])
{
@try {
@throw [E new];
} @catch(E *e) {
}
return 0;
}
$ gcc -Wall -O2 -g -lobjc except.m -o except
$ ./except
Aborted (core dumped)
$
No warnings or errors a compile time and a completely unexpected runtime
failure.
pinskia told me to link to: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11813
--
Summary: @try/@throw/@catch/@finally usage without -fexeceptions
compiles without warning/error
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nmiell at comcast dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32530
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug objc/32530] @try/@throw/@catch/@finally usage without -fexeceptions compiles without warning/error
2007-06-28 1:44 [Bug objc/32530] New: @try/@throw/@catch/@finally usage without -fexeceptions compiles without warning/error nmiell at comcast dot net
@ 2010-09-14 22:47 ` nicola at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: nicola at gcc dot gnu dot org @ 2010-09-14 22:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from nicola at gcc dot gnu dot org 2010-09-14 22:47 -------
GCC from trunk (will become 4.6.0) refuses to compile
@try/@catch/@throw/@synchronized expressions if -fobjc-exceptions is not used.
Thanks
--
nicola at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32530
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-14 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-28 1:44 [Bug objc/32530] New: @try/@throw/@catch/@finally usage without -fexeceptions compiles without warning/error nmiell at comcast dot net
2010-09-14 22:47 ` [Bug objc/32530] " nicola at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).