mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
Added test case for bug #100
Removed dubious check for not emitting static private global in other modules without access. This should be handled properly somewhere else, it's causing unresolved global errors for stuff that should work (in MiniD)
This commit is contained in:
@@ -618,11 +618,6 @@ void VarDeclaration::toObjFile(int multiobj)
|
||||
{
|
||||
Logger::println("data segment");
|
||||
|
||||
// we don't want to touch private static members at all !!!
|
||||
// template instances should always be emitted
|
||||
if (!DtoIsTemplateInstance(this) && prot() == PROTprivate && getModule() != gIR->dmodule)
|
||||
return;
|
||||
|
||||
// don't duplicate work
|
||||
if (this->ir.resolved) return;
|
||||
this->ir.resolved = true;
|
||||
|
||||
Reference in New Issue
Block a user