# HG changeset patch # User Christian Kamm # Date 1218563322 -7200 # Node ID a3d6c9eedcb6c3c13a7327abcc2287e26594be43 # Parent 70faa6af1357dac8095cf5c14d9cf41a49edcbb9 Get rid of 'static function cannot access nested' error. It is caught again later. diff -r 70faa6af1357 -r a3d6c9eedcb6 gen/llvmhelpers.cpp --- a/gen/llvmhelpers.cpp Tue Aug 12 18:33:34 2008 +0200 +++ b/gen/llvmhelpers.cpp Tue Aug 12 19:48:42 2008 +0200 @@ -406,11 +406,6 @@ } else { - if (irfunc->decl->isStatic()) - { - irfunc->decl->error("is static and cannot access nested %s %s", sym->kind(), sym->toChars()); - fatal(); - } return getNullPtr(getVoidPtrType()); } } diff -r 70faa6af1357 -r a3d6c9eedcb6 gen/toobj.cpp --- a/gen/toobj.cpp Tue Aug 12 18:33:34 2008 +0200 +++ b/gen/toobj.cpp Tue Aug 12 19:48:42 2008 +0200 @@ -64,7 +64,7 @@ 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();