commit e288e44926d1cb8f0f7c3b837466698007a95c5d
parent fb10d4864465bf9398705011026ff12cd19da2a6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 31 Oct 2013 19:20:47 +0100
Fix declaration of typedef variables
Variables with a type derivated from a typedef can also
have storage and qualifier specifiers, so the restriction
was too much restrictive.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/decl.c b/decl.c
@@ -205,7 +205,7 @@ specifier(register struct ctype *tp,
next();
return structdcl(tp);
case IDEN:
- if (!tp->defined && !store->defined && !qlf->defined) {
+ if (!tp->defined) {
register struct symbol *sym;
sym = lookup(yytext, NS_IDEN);