Non-default ctors, virtual base classes, & multiple inheritance all at once!

Benjamin Scherrey scherrey@switchco.com
Tue Sep 5 11:15:00 GMT 2000


    I'm having some trouble getting non-default constructors called for
virtual baseclasses in certain instances.. I've attached some code that
demonstrates this problem. In some cases, I can pass a parameter up the
tree to the virtual base class, in others, the default ctor is always
called even though my code clearly specifies the ctor taking a parm. Is
this a compiler bug or a language design issue?

    thanx & later,

        Ben Scherrey


More information about the Gcc mailing list