[Bug c++/21917] Missing warning when trying to explicitly construct a virtual base

2010-10-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917 --- Comment #8 from Jonathan Wakely 2010-10-28 09:17:23 UTC --- I've relied on exactly this behaviour and wouldn't want a warning. struct Base : virtual std::ios { Base() : std::ios(0) { } std::streambuf buf; }; struct MyStream : Base, std:

[Bug c++/21917] Missing warning when trying to explicitly construct a virtual base

2008-06-05 Thread r_q_einstein-gccgnuorg at yahoo dot com
--- Comment #7 from r_q_einstein-gccgnuorg at yahoo dot com 2008-06-05 23:07 --- I've run across this, too. I agree with Ivan's 2005-06-04 suggestion. It would be nice if the compiler would emit a warning that the derived class's constructor's call to the virtual base class's non-defaul

[Bug c++/21917] Missing warning when trying to explicitly construct a virtual base

2007-01-20 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-01-20 16:52 --- Not sure if the summary is 100% correct but it is far better than the previous one. -- manu at gcc dot gnu dot org changed: What|Removed |Added ---