shithub: scc

Download patch

ref: 55eb22f73fd61f6a5393869d99d9098aee5b7337
parent: f426a4d4ddaad3eb752814fc040f0b180775ce16
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Aug 18 14:28:27 EDT 2015

Simplify the error message in array()

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -613,7 +613,7 @@
 	lp = arithmetic(OADD, lp, rp);
 	tp = lp->type;
 	if (tp->op != PTR)
-		error("subscripted value is neither array nor pointer nor vector");
+		error("subscripted value is neither array nor pointer");
 	lp =  node(OPTR, tp->type, lp, NULL);
 	lp->lvalue = 1;
 	return lp;