http://d.puremagic.com/issues/show_bug.cgi?id=1161 ------- Comment #1 from tomas at famolsen.dk 2008-05-04 21:10 ------- Adding the following line to expressions.c(VarExp::semantic) catches it: // check access to VarDeclaration accessCheck(loc, sc, NULL, var); --