This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21917] Missing warning? (or error?)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]