summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/anon-struct-9.c
Commit message (Collapse)AuthorAgeFilesLines
* PR c/44051jsm282010-05-091-1/+1
| | | | | | | * gcc.dg/anon-struct-9.c: Avoid generating identifier i386. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159207 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/4784jsm282010-05-091-0/+129
* c-decl.c (detect_field_duplicates_hash): New. Handle anonymous structures and unions recursively. (detect_field_duplicates): Move duplicate detection with a hash to detect_field_duplicates_hash. Always use a hash if anonymous structures or unions are present. * doc/extend.texi (Unnamed Fields): Document that duplicate fields give errors. testsuite: * gcc.dg/anon-struct-9.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159204 138bc75d-0d04-0410-961f-82ee72b054a4