(fold): Handle COMPONENT_REFs involving CONSTRUCTORs.

From-SVN: r8095
This commit is contained in:
Jason Merrill 1994-09-20 00:32:29 +00:00
parent df8b713c8c
commit e082358bff

View File

@ -3422,6 +3422,11 @@ fold (expr)
return t;
#endif /* 0 */
case COMPONENT_REF:
if (TREE_CODE (arg0) == CONSTRUCTOR)
t = TREE_VALUE (purpose_member (arg1, CONSTRUCTOR_ELTS (arg0)));
return t;
case RANGE_EXPR:
TREE_CONSTANT (t) = wins;
return t;