public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/45735] New: ICE in objc_add_method, at objc/objc-act.c:6941
@ 2010-09-20 17:45 doko at ubuntu dot com
0 siblings, 0 replies; only message in thread
From: doko at ubuntu dot com @ 2010-09-20 17:45 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-20 17:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-20 17:45 [Bug objc/45735] New: ICE in objc_add_method, at objc/objc-act.c:6941 doko at ubuntu dot com
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).