[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 redi at gcc dot gnu.org 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; };

[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

[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

[Bug c++/21917] Missing warning?

2007-01-09 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2007-01-09 15:02 --- Have you tried compiling with -pedantic -Wall -Wextra ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917

[Bug c++/21917] Missing warning?

2007-01-09 Thread igodard at pacbell dot net
--- Comment #5 from igodard at pacbell dot net 2007-01-09 16:36 --- No message on 4.1.1 despite -pedantic -Wall -Wextra -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917

[Bug c++/21917] Missing warning?

2005-11-23 Thread gdr at gcc dot gnu dot org
--- Comment #3 from gdr at gcc dot gnu dot org 2005-11-24 02:25 --- (In reply to comment #2) This is how C++ is done, maybe a warning can be emitted but it seems like it will emitt too much for valid C++ code. I don't know; the code shown is very contrived to my taste. -- gdr

[Bug c++/21917] Missing warning?

2005-07-13 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917

[Bug c++/21917] Missing warning?

2005-07-13 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Keywords||diagnostic http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917

[Bug c++/21917] Missing warning?

2005-06-05 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Summary|Missing warning? (or error?)|Missing warning? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917

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

2005-06-04 Thread igodard at pacbell dot net
--- 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

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

2005-06-04 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-05 03:02 --- This is how C++ is done, maybe a warning can be emitted but it seems like it will emitt too much for valid C++ code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917