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
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;


@implementation Fraction
-(void) print {

-(void) setNumaretor: (int) n: (int) m {
  numaretor = n;
  denominator = m;

-(int) numaretor {
  return numaretor;

-(int) denominator {
  return denominator;


           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

Reply via email to