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]

Re: c: Fix PR 2820 re nested anonymous entities


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


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