OSDN Git Service

PR c/2820
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Nov 2001 17:54:57 +0000 (17:54 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Nov 2001 17:54:57 +0000 (17:54 +0000)
commit9303bbca4517ee0ddbd21ca7b4bc52ef0887a540
treea8c85dc018f0945da2df4a02254876ffb9af0704
parent6dbdb8b93d2e068592a118eadbaa56783791d86b
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.c-torture/execute/anon-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46774 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/anon-1.c [new file with mode: 0644]