Commit 32dbfb3c by Steve Ellcey Committed by Steve Ellcey

* typeck.c (cp_build_unary_op): Check for ERROR_MARK.

From-SVN: r143212
parent 6f6278ad
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> 2009-01-09 Jakub Jelinek <jakub@redhat.com>
PR c++/35335 PR c++/35335
......
...@@ -4189,7 +4189,7 @@ cp_build_unary_op (enum tree_code code, tree xarg, int noconvert, ...@@ -4189,7 +4189,7 @@ cp_build_unary_op (enum tree_code code, tree xarg, int noconvert,
tree val; tree val;
const char *invalid_op_diag; const char *invalid_op_diag;
if (arg == error_mark_node) if (error_operand_p (arg))
return error_mark_node; return error_mark_node;
if ((invalid_op_diag if ((invalid_op_diag
......
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