commit a88a10c38215e4bd6317d65a33e3bb0dac02dfd8
parent 69f4faf966f646c47631261ebb9f8ff4af8906a0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 5 Oct 2015 22:32:18 +0200
Fix notdefined()
The flag that a symbol is already in the hash table is
ISDECLARED, meanwhile ISDEFINED stands for symbols
already defined (defined in the standard sense).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc1/expr.c b/cc1/expr.c
@@ -509,7 +509,7 @@ notdefined(Symbol *sym)
expect(IDEN);
expect(')');
- isdef = (sym->flags & ISDEFINED) != 0;
+ isdef = (sym->flags & ISDECLARED) != 0;
sym = newsym(NS_IDEN);
sym->type = inttype;
sym->flags |= ISCONSTANT;