aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index f868bf63..3f67451e 100644
--- a/parse.c
+++ b/parse.c
@@ -1531,7 +1531,7 @@ static struct token *handle_qualifiers(struct token *t, struct decl_state *ctx)
{
while (token_type(t) == TOKEN_IDENT) {
struct symbol *s = lookup_keyword(t->ident, NS_TYPEDEF);
- if (!s)
+ if (!s || !s->op)
break;
if (!(s->op->type & (KW_ATTRIBUTE | KW_QUALIFIER)))
break;