[Bug c++/43120] Diamond virtual inheritence with covariant return type confuses GCC

goeran at uddeborg dot se gcc-bugzilla@gcc.gnu.org
Wed Feb 24 11:03:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list