this simple test code provided by Michael Arntzenius causes gcc to ICE when
built with -fobjc-gc. happens with gcc 4.1/4.2/4.3 on x86_64. x86 seems to
pass OK.
$ cat test.m
#import <objc/Object.h>
@interface Test: Object { int i; }
@end
Test *global_var;
@implementation Test
+initialize {
global_var = [Test new];
}
@end
$ gcc-4.3.0 -fobjc-gc test.m
test.m: In function â+[Test initialize]â:
test.m:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
--
Summary: ICE while building simple ObjC code with -fobjc-gc
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vapier at gentoo dot org
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35996