ref: a88a10c38215e4bd6317d65a33e3bb0dac02dfd8
parent: 69f4faf966f646c47631261ebb9f8ff4af8906a0
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Oct 5 18:32:18 EDT 2015
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).
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -509,7 +509,7 @@
expect(IDEN);
expect(')');
- isdef = (sym->flags & ISDEFINED) != 0;
+ isdef = (sym->flags & ISDECLARED) != 0;
sym = newsym(NS_IDEN);
sym->type = inttype;
sym->flags |= ISCONSTANT;