Get rid of 'static function cannot access nested' error. It is caught again later.

This commit is contained in:
Christian Kamm
2008-08-12 19:48:42 +02:00
parent 3e064bdb19
commit 57cd1b4445
2 changed files with 1 additions and 6 deletions

View File

@@ -406,11 +406,6 @@ LLValue* DtoNestedContext(Loc loc, Dsymbol* sym)
}
else
{
if (irfunc->decl->isStatic())
{
irfunc->decl->error("is static and cannot access nested %s %s", sym->kind(), sym->toChars());
fatal();
}
return getNullPtr(getVoidPtrType());
}
}

View File

@@ -64,7 +64,7 @@ void Module::genobjfile(int multiobj)
Logger::cout() << "Generating module: " << (md ? md->toChars() : toChars()) << '\n';
LOG_SCOPE;
//printf("codegen: %s\n", srcfile->toChars());
printf("codegen: %s\n", srcfile->toChars());
// start by deleting the old object file
deleteObjFile();