[PR45735] "cc1obj" closed unexpectedly

Bug #610851 reported by Dipak Panchasara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc
Fix Released
Medium
gcc-4.4 (Ubuntu)
Invalid
Low
Unassigned
gcc-4.5 (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: gcc-4.4

at this point i dont know

ProblemType: Crash
Architecture: i386
CheckboxSubmission: d0adcde48d094264559e88ffdf5458f5
CheckboxSystem: 4ed15c40009aa6f7770f606350a390a2
Date: Wed Jul 28 18:22:12 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/lib/gcc/i486-linux-gnu/4.4.1/cc1obj
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: gobjc-4.4 4.4.1-4ubuntu9
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: gcc-4.4
Uname: Linux 2.6.31-20-generic i686

Revision history for this message
Dipak Panchasara (panchasara-dipak) wrote :
Revision history for this message
In , Matthias Klose (doko) wrote :

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

Changed in gcc-4.4 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Changed in gcc-4.5 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
summary: - "cc1obj" closed unexpectedly
+ [PR45735] "cc1obj" closed unexpectedly
Revision history for this message
Matthias Klose (doko) wrote :

seen in 4.3, 4.4, 4.5 and current trunk

Revision history for this message
Matthias Klose (doko) wrote :

current trunk outputs:

$ /usr/lib/gcc-snapshot/bin/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.

see the error message before the ice.

Revision history for this message
In , Nicola-gcc (nicola-gcc) wrote :

Author: nicola
Date: Sun Oct 24 16:48:57 2010
New Revision: 165901

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165901
Log:
2010-10-24 Nicola Pero <email address hidden>

        PR objc/45735
        * obj-c.dg/pr45735.mm: New.
        * obj-c++.dg/pr45735.mm: New.

Added:
    trunk/gcc/testsuite/obj-c++.dg/pr45735.mm
    trunk/gcc/testsuite/objc.dg/pr45735.m
Modified:
    trunk/gcc/testsuite/ChangeLog

Revision history for this message
In , Nicola-gcc (nicola-gcc) wrote :

Fixed in trunk, and testcases committed to trunk.

Thanks

Changed in gcc:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
dino99 (9d9) wrote :

This version is outdated and no more supported

Changed in gcc-4.4 (Ubuntu):
status: Confirmed → Invalid
Changed in gcc-4.5 (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.