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:
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+.