* typeck.c (cp_build_unary_op): Check for ERROR_MARK.
From-SVN: r143212
This commit is contained in:
parent
6f6278ad2a
commit
32dbfb3c17
@ -1,3 +1,7 @@
|
||||
2009-01-09 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* typeck.c (cp_build_unary_op): Check for ERROR_MARK.
|
||||
|
||||
2009-01-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/35335
|
||||
|
@ -4189,7 +4189,7 @@ cp_build_unary_op (enum tree_code code, tree xarg, int noconvert,
|
||||
tree val;
|
||||
const char *invalid_op_diag;
|
||||
|
||||
if (arg == error_mark_node)
|
||||
if (error_operand_p (arg))
|
||||
return error_mark_node;
|
||||
|
||||
if ((invalid_op_diag
|
||||
|
Loading…
Reference in New Issue
Block a user