shithub: scc

Download patch

ref: a1ec56af45b62704436f4f95ebc443cdf22383be
parent: af4c86d6dc8ef1f1c89e63805f639bb044ba6d19
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Sep 4 14:46:28 EDT 2015

Add error recovery in incdec()

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -468,7 +468,8 @@
 		inc = constnode(one);
 		break;
 	default:
-		error("incorrect type in arithmetic operation");
+		errorp("wrong type argument to increment or decrement");
+		return np;
 	}
 	return arithmetic(op, np, inc);
 }