From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914 Description of problem: The simple attached code causes an internal compiler error in gcc version 3.1 20011127 (Red Hat Linux Rawhide 3.1-0.10) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Save file 2.type g++ -c prep2.C 3.See the error Actual Results: When I compile the attached code, the compiler reports: prep2.C:47: Internal error #20010605. prep2.C:47: Internal compiler error in build_secondary_vtable, at cp/class.c: 672 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. Expected Results: The source should have compiled. If I change almost anything in the file, the code compiles fine. If I change class I : public G, public H { }; To: class I : public H, public G { }; That is, just change the order of the listed parent classes, the compile works fine. Additional info:
Created attachment 45481 [details] This file crashes the compiler.
Submitted as PR against CVS g++, this is part of the code I don't know very well.