shithub: scc

Download patch

ref: 4fcf1afb4b17da514f823d16890dd4ece09ecf1e
parent: 248d4be51443e4c1a6137f285bdde1a027120bb6
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Aug 27 12:08:34 EDT 2015

Update nested variable in cast()

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -1013,7 +1013,9 @@
 	default:
 		if (nested == NR_SUBEXPR)
 			error("too expressions nested by parentheses");
+		++nested;
 		rp = expr();
+		--nested;
 		expect(')');
 		rp = postfix(rp);
 		break;