scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 55eb22f73fd61f6a5393869d99d9098aee5b7337
parent f426a4d4ddaad3eb752814fc040f0b180775ce16
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 18 Aug 2015 18:28:27 +0200

Simplify the error message in array()

Diffstat:
Mcc1/expr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -613,7 +613,7 @@ array(Node *lp, Node *rp) 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;