fix
authorMatthias Braun <matze@braunis.de>
Tue, 25 Nov 2008 13:16:07 +0000 (13:16 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 25 Nov 2008 13:16:07 +0000 (13:16 +0000)
[r23983]

parser.c

index f7e10ab..506fea0 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1912,7 +1912,8 @@ static entity_t *determine_lhs_ent(expression_t *const expr,
                case EXPR_REFERENCE: {
                        entity_t *const entity = expr->reference.entity;
                        /* we should only find variables as lvalues... */
-                       if (entity->base.kind != ENTITY_VARIABLE)
+                       if (entity->base.kind != ENTITY_VARIABLE
+                                       && entity->base.kind != ENTITY_PARAMETER)
                                return NULL;
 
                        return entity;