Commit 475e8534 by Richard Stallman

(unary_expr): Delete the alternate REALPART and IMAGPART rules with explicit parens.

(unary_expr): Delete the alternate REALPART and IMAGPART
rules with explicit parens.  Make the simple REALPART and IMAGPART
rules contain cast_expr.

From-SVN: r4179
parent 06038f12
......@@ -445,14 +445,10 @@ unary_expr:
{ $$ = c_alignof_expr ($2); }
| ALIGNOF '(' typename ')' %prec HYPERUNARY
{ $$ = c_alignof (groktypename ($3)); }
| REALPART unary_expr %prec UNARY
| REALPART cast_expr %prec UNARY
{ $$ = build_unary_op (REALPART_EXPR, $2, 0); }
| IMAGPART unary_expr %prec UNARY
| IMAGPART cast_expr %prec UNARY
{ $$ = build_unary_op (IMAGPART_EXPR, $2, 0); }
| REALPART '(' unary_expr ')' %prec HYPERUNARY
{ $$ = build_unary_op (REALPART_EXPR, $3, 0); }
| IMAGPART '(' unary_expr ')' %prec HYPERUNARY
{ $$ = build_unary_op (IMAGPART_EXPR, $3, 0); }
;
cast_expr:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment