(unary_expr): Warn about overflows in parser-built unary expressions.

From-SVN: r3403
This commit is contained in:
Richard Stallman 1993-02-02 04:39:14 +00:00
parent 90374cc2ff
commit 5303129fc9
1 changed files with 2 additions and 1 deletions

View File

@ -395,7 +395,8 @@ unary_expr:
{ $$ = $3;
pedantic = $<itype>1; }
| unop cast_expr %prec UNARY
{ $$ = build_unary_op ($1, $2, 0); }
{ $$ = build_unary_op ($1, $2, 0);
overflow_warning ($$); }
/* Refer to the address of a label as a pointer. */
| ANDAND identifier
{ tree label = lookup_label ($2);