(unary_expr): Warn about overflows in parser-built unary expressions.
From-SVN: r3403
This commit is contained in:
parent
90374cc2ff
commit
5303129fc9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user