------- Additional Comments From bangerth at dealii dot org 2005-05-06 22:33 ------- That's an interesting case involving covariant return types: ------------------------- class B1 { public: virtual void foo(); }; class B2 { public: virtual B2 & bar() = 0; }; class I : public B1, B2 { public: virtual ~I(); virtual I & bar(); }; class D : public I { virtual ~D(); }; ------------------------ g/x> /home/bangerth/bin/gcc-4.0-pre/bin/c++ -c x.cc x.cc:17: internal compiler error: in make_thunk, at cp/method.c:127 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. The interesting part is: if I change the declarations to use "struct" instead of "class", then the ICE goes away. I wouldn't know what that would change but it happens anyway... Confirmed. W.
-- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-05-06 22:33:07 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21427