From 73d8bf6a048b2e4a497280f5db29a744385de57f Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 1 Jan 2009 10:31:55 +0000 Subject: [PATCH] Fix linkage check for local variables in check_variable_type_complete(). [r25014] --- parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 3c0caf0..88ab74e 100644 --- a/parser.c +++ b/parser.c @@ -5353,7 +5353,8 @@ static void check_variable_type_complete(entity_t *ent) /* §6.7:7 If an identifier for an object is declared with no linkage, the * type for the object shall be complete [...] */ declaration_t *decl = &ent->declaration; - if (decl->storage_class != STORAGE_CLASS_NONE) + if (decl->storage_class == STORAGE_CLASS_EXTERN || + decl->storage_class == STORAGE_CLASS_STATIC) return; type_t *const orig_type = decl->type; -- 2.20.1