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;
};
--- 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
--- 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
--- 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
--- 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
--- 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
--
What|Removed |Added
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917
--
What|Removed |Added
Keywords||diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917
--
What|Removed |Added
Summary|Missing warning? (or error?)|Missing warning?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21917
--- 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
--- 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
11 matches
Mail list logo