This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/53943] New: Compiler ICE with -fobjc-direct-dispatch flag on Linux
- From: "kostja.osipov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jul 2012 17:25:00 +0000
- Subject: [Bug objc/53943] New: Compiler ICE with -fobjc-direct-dispatch flag on Linux
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53943
Bug #: 53943
Summary: Compiler ICE with -fobjc-direct-dispatch flag on Linux
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kostja.osipov@gmail.com
GCC Objective C compiler fails with an ICE when flag -fobjc-direct-dispatch is
set on Linux. I am aware that this flag is for Darwin, however, ICE is never a
good idea. Better to ignore the flag with a warning.
kostja@atlas:~$ cat foo.m
#include <objc/runtime.h>
#include <objc/Object.h>
@interface Interface: Object
+ (id) new;
@end
@implementation Interface
+ (id) new
{
return class_createInstance(self, 0);
}
@end
int main()
{
@throw [Interface new];
}
kostja@atlas:~$ gcc -fobjc-direct-dispatch foo.m -lobjc
foo.m: In function âmainâ:
foo.m:14:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccjDs0Y7.out file, please attach this to
your bugreport.