This is the mail archive of the gcc-patches@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] |
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.
Your patch looks correct to me. Did you otherwise bootstrap/test it? Thanks, -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |