This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: c: Fix PR 2820 re nested anonymous entities
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: c: Fix PR 2820 re nested anonymous entities
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sun, 4 Nov 2001 17:08:16 +0000 (GMT)
- cc: <gcc-patches at gcc dot gnu dot org>
On Sun, 4 Nov 2001, Neil Booth wrote:
> PR c/2820
> * c-typeck.c (lookup_field): Rework to return a chain down to
> the looked-up field.
> (build_component_ref): Use the new lookup_field to handle
> nested anonymous entities correctly.
>
> * testsuite/gcc.dg/anon-1.c: New test.
OK. Do you want to look at the problem discussed with DJ about how
multiple occurrences of the same field name (in different anonymous
substructures) are not detected :-)?
> Index: testsuite/gcc.dg/anon-1.c
This should go in gcc.c-torture/execute (and so loop over multiple
compilation options); it doesn't need any special compilation options, or
to check for warning text or its absence, and doesn't need any other
special features of gcc.dg.
--
Joseph S. Myers
jsm28@cam.ac.uk