Mercurial > projects > ldc
comparison dmd/expression.c @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | 5acec6b2eef8 |
children | 297690b5d4a5 |
comparison
equal
deleted
inserted
replaced
162:1856c62af24b | 163:a8cd9bc1021a |
---|---|
3525 type = new TypeDelegate(tf); | 3525 type = new TypeDelegate(tf); |
3526 type = type->semantic(loc, sc); | 3526 type = type->semantic(loc, sc); |
3527 } | 3527 } |
3528 #endif | 3528 #endif |
3529 } | 3529 } |
3530 | |
3531 // LLVMDC: Fixes bug 1161, http://d.puremagic.com/issues/show_bug.cgi?id=1161 | |
3532 // check access to VarDeclaration | |
3533 accessCheck(loc, sc, NULL, var); | |
3530 | 3534 |
3531 VarDeclaration *v = var->isVarDeclaration(); | 3535 VarDeclaration *v = var->isVarDeclaration(); |
3532 if (v) | 3536 if (v) |
3533 { | 3537 { |
3534 if (v->isConst() && type->toBasetype()->ty != Tsarray && v->init) | 3538 if (v->isConst() && type->toBasetype()->ty != Tsarray && v->init) |