This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ObjC++ Status ?
- From: Serguei Kouratov <ksubox at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 17 Feb 2005 03:03:29 +0900
- Subject: ObjC++ Status ?
- Reply-to: Serguei Kouratov <ksubox at gmail dot com>
Hi,
Could somebody inform about status of ObjC++ branch ?
Recently I took CVS sources & built native MinGW compilers,
1. but version is 3.5.0 20040819 - very old !!!
2. and it produces internal compile error when I try to compile simplest ObjC
example with .mm extension:
#import <stdio.h>
#import <objc/Object.h>
@interface MyClass: Object
{
int val;
}
-(void) print;
@end
@implementation MyClass; /// <<<--- Test.mm:13: internal compiler error...
-(void) print
{
printf (" Hey\n");
}
@end
int main (int argc, char *argv[])
{
MyClass *myClass;
myClass = [MyClass alloc];
myClass = [myClass init];
[myClass print];
[myClass free];
return 0;
}
The same file with .m extension works fine.
Serguei Kouratov