[Bug c++/20207] null constructor not needed in multiple inheritance
Serge dot Iovleff at univ-lille1 dot fr
gcc-bugzilla@gcc.gnu.org
Tue Mar 1 11:16:00 GMT 2005
------- Additional Comments From Serge dot Iovleff at univ-lille1 dot fr 2005-03-01 11:16 -------
(In reply to comment #3)
> it is invalid to use A0 in the base constructor list of D, because A0 is not a
> virtual base for D. .it doesn't matter that the inheritance A->A0 is declared
> virtual, 2 trees which both inherit A0 must join at D to use it in base
> constructor list)
No, I think it is invalid to use A0 in the base constructor list of B and C,
even if g++ allow it...
And I think also A0 is a virtual base for D, as it would appear twice (D inherit
from B and C)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20207
More information about the Gcc-bugs
mailing list