by the constructor expression only if available. Otherwise
use the type of the declared type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5390
138bc75d-0d04-0410-961f-
82ee72b054a4
if (TREE_CODE (TREE_TYPE (exp)) == RECORD_TYPE
|| TREE_CODE (TREE_TYPE (exp)) == UNION_TYPE)
- field = TREE_PURPOSE (link);
+ {
+ /* if available, use the type given by link */
+ if (TREE_PURPOSE (link) != 0)
+ field = TREE_PURPOSE (link);
+ }
if (TREE_CODE (TREE_TYPE (exp)) == ARRAY_TYPE)
index = TREE_PURPOSE (link);