This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21427] Failure in make_thunk, cp/method.c:145 when compiling with multiply-inherited members
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2005 22:33:08 -0000
- Subject: [Bug c++/21427] Failure in make_thunk, cp/method.c:145 when compiling with multiply-inherited members
- References: <20050506205806.21427.lord.dimwit@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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