seen in 4.3, 4.4, 4.5, 4.6, didn't find an existing report:
$ gcc -c Fraction.m
Fraction.m:9:29: error: expected identifier before ':' token
Fraction.m:9:29: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'error_mark' in objc_add_method, at
objc/objc-act.c:6941
Please submit a full bug report,
with preprocessed source if appropriate.
@interface Fraction {
int numaretor;
int denominator;
}
-(void) print;
-(void) setNumaretor: (int) :(int) ;
-(int) numaretor;
-(int) denominator;
@end
@implementation Fraction
-(void) print {
printf("%i/%i",numaretor,denominator);
}
-(void) setNumaretor: (int) n: (int) m {
numaretor = n;
denominator = m;
}
-(int) numaretor {
return numaretor;
}
-(int) denominator {
return denominator;
}
@end
--
Summary: ICE in objc_add_method, at objc/objc-act.c:6941
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45735