[Bug c++/21917] Missing warning? (or error?)
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Sat Jun 4 22:22:00 GMT 2005
------- Additional Comments From igodard at pacbell dot net 2005-06-04 22:22 -------
p.s. I suppose that if there is only a single path to the virtual base then
explicit construction is meaningful and the explicit construction in the der*
classes is not wrong. But in the constructor for "top" the compiler knows that
there are multiple derivations from virt (it has to or it couldn't know to call
the null constructor), so the warning could be issued in "top". Something like
"base constructor virt(int) in der1(int) bypassed, virt() used instead"?
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917
More information about the Gcc-bugs
mailing list