From da06f7c4e31a339140da8b041c2cfbde0c4a9b4c Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 22 Apr 2011 18:34:52 +0200 Subject: [PATCH] Merged DMD commit 20fb0fd8b8f214db21d346ac053aad7663efbbdd: bugzilla 5195 Forward references ignore const --- dmd/expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmd/expression.c b/dmd/expression.c index fdb75977..edfd5d90 100644 --- a/dmd/expression.c +++ b/dmd/expression.c @@ -2142,7 +2142,7 @@ Lagain: { //printf("Identifier '%s' is a variable, type '%s'\n", toChars(), v->type->toChars()); if (!type) - { if (!v->type && v->scope) + { if ((!v->type || !v->type->deco) && v->scope) v->semantic(v->scope); type = v->type; if (!v->type)