scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit d27d299ee050ee5a26d277cbf9839a7d3eb2fb14
parent 8f51e18e15eac2e434a0f51cf788d3b6b621566c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  8 Aug 2015 12:09:15 +0200

Fix test of unexpected name in type name

The test were inverted.

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

diff --git a/cc1/decl.c b/cc1/decl.c @@ -423,7 +423,7 @@ type(Symbol *sym, int sclass, Type *data) { if (sclass) error("class storage in type name"); - if (!sym->name) + if (sym->name) error("unexpected identifier in type name"); }