--- Comment #16 from jason at gcc dot gnu dot org 2008-02-14 23:11 ---
Subject: Bug 11159
Author: jason
Date: Thu Feb 14 23:11:04 2008
New Revision: 132324
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132324
Log:
PR c++/5645
PR c++/11159
* class.c (type
--- Comment #15 from manu at gcc dot gnu dot org 2008-02-13 11:13 ---
I am going to close this as a duplicate of 5645 and post a patch there that
includes the testcases of both PRs. Both bugs are about the definition (or lack
of it) of this warning.
*** This bug has been marked as a dup
--- Comment #14 from manu at gcc dot gnu dot org 2007-11-16 13:58 ---
(In reply to comment #13)
> Even the text of the warning is misleading. Why "should" it be explicitly
> initialised, when the standard says it will be implicitly initialised if a
> suitable default constructor exists?
--- Comment #13 from jwakely dot gcc at gmail dot com 2007-11-14 13:27
---
(In reply to comment #10)
>
> I do not have access to std::basic_ios from MyStream. Solution here?
Yes you do. The warning can be prevented by initialising the virtual base:
MyStream() : std::ios(), std::
--- Comment #12 from manu at gcc dot gnu dot org 2007-02-09 14:03 ---
Also related to this warning: PR 5645.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11159
--- Comment #11 from manu at gcc dot gnu dot org 2007-01-09 14:50 ---
There is an unreviewed patch to name this warning in the patch queue:
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00520.html
I guess it doesn't solve all the inconsistencies mentioned here but at least it
can be indi
--- Comment #10 from roman dot fietze at telemotive dot de 2006-04-04
12:26 ---
The following snippet also gives me errors, and here, as a developer, I did all
I could do:
-
#include
class MyStream : public std::ostringstream
{
public:
inline MyStream() : std::ostringstream()
--- Comment #9 from wotte at dre dot vanderbilt dot edu 2006-03-09 22:44
---
In some cases, this warning can also be impossible to address and may be
buggy/erroneous. Consider the following example:
struct A
{
A ();
};
struct B : virtual A
{
B ();
};
struct C : virtual