This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: proposed fix for PR c++/8662
- From: Joe Buck <jbuck at synopsys dot com>
- To: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 27 Nov 2002 15:30:03 -0800 (PST)
- Subject: Re: proposed fix for PR c++/8662
I wrote:
> In PR 8662, we accept
>
> class { int i; } a;
> void foo() { a.i; }
>
> without a diagnostic. The reason is that, for the anonymous classes,
> nothing in the flow notes whether the keyword "class" or "struct" was
> given, as handle_class_head is not called.
Mark Mitchell wrote:
> Your patch looks correct to me.
> Did you otherwise bootstrap/test it?
Yes, on i686-pc-linux-gnu; no regressions. I sent you a message a while
back stating this, but don't see it in the gcc-patches archive so I'll
send it again.
Would you be willing to apply it? I don't have write permission (and
there are some reasons for that).
The patch is in
http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01348.html