Bug 483851

Summary: Internal compiler error: in instantiate_type, at cp/class.c:6183
Product: [Fedora] Fedora Reporter: Chandrakumar Muthaiah <sudhach>
Component: gcc4Assignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: 10   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
g++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-11 10:55:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The intermediate file from g++ none

Description Chandrakumar Muthaiah 2009-02-03 22:01:07 UTC
Created attachment 330787 [details]
The intermediate file from g++ 

Description of problem:

g++ bails out when trying to compile the atatched c++ program

Version-Release number of selected component (if applicable): g++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)


How reproducible:


Steps to Reproduce:
1. On Fedora 10 installation using g++ 4.3.2
2. g++ -c -pedantic -Os -o main.o main.cpp
  
Actual results:
 main.cpp: In member function ‘rbnode* rbtree::find(int)’:
 main.cpp:154: internal compiler error: in instantiate_type, at cp/class.c:6183
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <http://bugzilla.redhat.com/bugzilla> for instructions.
 Preprocessed source stored into /tmp/ccaKK7Ob.out file, please attach this to your bugreport.
make: *** [main.o] Error 1


Expected results:
Error with different message
error: argument of type ‘rbnode* (rbnode::)()’ does not match ‘rbnode*’


Additional info:

Comment 1 Jakub Jelinek 2009-02-11 10:55:34 UTC
This is http://gcc.gnu.org/PR37646, has been fixed in gcc 4.4 and on the 4.3 branch as well.  As this is an ice-on-invalid, it isn't very high priority.
It will be either fixed in F10 if gcc is ever upgraded there, or just in Fedora 11+.