Merged DMD commit 20fb0fd8b8f214db21d346ac053aad7663efbbdd:

bugzilla 5195 Forward references ignore const
This commit is contained in:
David Nadlinger
2011-04-22 18:34:52 +02:00
parent c7205fe4fb
commit da06f7c4e3

View File

@@ -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)