This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43120] Diamond virtual inheritence with covariant return type confuses GCC
- From: "goeran at uddeborg dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2010 11:02:47 -0000
- Subject: [Bug c++/43120] Diamond virtual inheritence with covariant return type confuses GCC
- References: <bug-43120-10888@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from goeran at uddeborg dot se 2010-02-24 11:02 -------
Created an attachment (id=19944)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19944&action=view)
A different simplification, avoiding the diamond inheritance
The diamond inheritance does not seem to be a requirement. Here is a case
simplified in a different way, where there is no diamond inheritance any more.
(This one does print "33" rather than a huge number. Still wrong, obviously.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43120