From: Hans-Peter Nilsson Date: Tue, 22 Jan 2002 07:48:25 +0000 (+0000) Subject: c-typeck.c (parser_build_binary_op): If result from build_binary_op is ERROR_MARK... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58bf601baeec94a1c6ed023021bd50e0821bc5bd;p=gcc.git c-typeck.c (parser_build_binary_op): If result from build_binary_op is ERROR_MARK just return error_mark_node... * c-typeck.c (parser_build_binary_op): If result from build_binary_op is ERROR_MARK just return error_mark_node without further processing. From-SVN: r49066 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37c60bd81ca..d026309ec5d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-01-22 Hans-Peter Nilsson + + * c-typeck.c (parser_build_binary_op): If result from + build_binary_op is ERROR_MARK just return error_mark_node without + further processing. + 2002-01-21 Jason Thorpe * config/netbsd.h (TARGET_HAS_F_SETLKW): define. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 756832d4402..a1a00fcefe1 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -1799,6 +1799,9 @@ parser_build_binary_op (code, arg1, arg2) enum tree_code code1 = ERROR_MARK; enum tree_code code2 = ERROR_MARK; + if (TREE_CODE (result) == ERROR_MARK) + return error_mark_node; + if (IS_EXPR_CODE_CLASS (class1)) code1 = C_EXP_ORIGINAL_CODE (arg1); if (IS_EXPR_CODE_CLASS (class2))