diff options
author | Steve Ellcey <sje@cup.hp.com> | 2009-01-09 17:29:34 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2009-01-09 17:29:34 +0000 |
commit | 32dbfb3c17b32e39f92a729061641cbff61af7e9 (patch) | |
tree | 661d764404b82bc7049e31182ad8e0eddf180b03 /gcc/cp/typeck.c | |
parent | 6f6278ad2a2a1110541134bf08fac6db5255853c (diff) | |
download | gcc-32dbfb3c17b32e39f92a729061641cbff61af7e9.zip gcc-32dbfb3c17b32e39f92a729061641cbff61af7e9.tar.gz gcc-32dbfb3c17b32e39f92a729061641cbff61af7e9.tar.bz2 |
* typeck.c (cp_build_unary_op): Check for ERROR_MARK.
From-SVN: r143212
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 4be7a25..577e026 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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 |