From 903e205552ce7b7c9b663acc2df68f516761eab4 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 12 Sep 2008 20:02:24 +0000 Subject: [PATCH] Use given storage class as declared storage class in create_error_declaration(). [r21908] --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 89ebf71..ef0cecc 100644 --- a/parser.c +++ b/parser.c @@ -3065,10 +3065,10 @@ static declaration_t *create_error_declaration(symbol_t *symbol, storage_class_t { declaration_t *const decl = allocate_declaration_zero(); decl->source_position = *HERE; + decl->declared_storage_class = storage_class; decl->storage_class = storage_class != STORAGE_CLASS_NONE || scope == global_scope ? storage_class : STORAGE_CLASS_AUTO; - decl->declared_storage_class = decl->storage_class; decl->symbol = symbol; decl->implicit = true; record_declaration(decl); -- 2.20.1