This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: wrong C++ warning "fix" last year
- From: Michael Matz <matz at suse dot de>
- To: Matt Austern <austern at apple dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 5 Mar 2003 12:59:13 +0100 (CET)
- Subject: 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.