OSDN Git Service

PR c/10676
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 May 2010 20:39:39 +0000 (20:39 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:04:07 +0000 (14:04 +0900)
commit5068f2b2ff7d9aa91400e72d5e020293688108d4
tree175ceffce0f7b6239995d32a481b85ad81919096
parent18b3567a50af785338b4732e85ed39beda6cc1fc
PR c/10676
* c-typeck.c (lookup_field): Take a type directly.  Update
recursive calls.
(build_component_ref): Update call to lookup_field.
(set_init_label): Use lookup_field to find initialized field.
Handle returned list of fields like a sequence of designators.

testsuite:
* gcc.dg/anon-struct-10.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159206 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog