This is the mail archive of the gcc@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]

Re: wrong C++ warning "fix" last year


Hi,

On Tue, 4 Mar 2003, Matt Austern wrote:

> I've looked at gcc 3.2's behavior.  My opinion:
>   (a) My patch was correct.  gcc 3.2 did warn about this program, but
> gcc 3.2's warning was wrong.

Yes.

>   (b) A warning or error for class B, which really is broken, would be a
> good idea.  However, that's not related to my patch.  The warning/error
> would be for a class that inherits from an aggregate with const member
> variables and no constructors.

Not only inheritance, but also containment of such classes as members.


Ciao,
Michael.


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