comparison gen/toobj.cpp @ 650:aa6a0b7968f7

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)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 05 Oct 2008 17:28:15 +0200
parents e83ba4ae4878
children 6aaa3d3c1183
comparison
equal deleted inserted replaced
649:505f41873d4f 650:aa6a0b7968f7
616 // global variable or magic 616 // global variable or magic
617 if (isDataseg()) 617 if (isDataseg())
618 { 618 {
619 Logger::println("data segment"); 619 Logger::println("data segment");
620 620
621 // we don't want to touch private static members at all !!!
622 // template instances should always be emitted
623 if (!DtoIsTemplateInstance(this) && prot() == PROTprivate && getModule() != gIR->dmodule)
624 return;
625
626 // don't duplicate work 621 // don't duplicate work
627 if (this->ir.resolved) return; 622 if (this->ir.resolved) return;
628 this->ir.resolved = true; 623 this->ir.resolved = true;
629 this->ir.declared = true; 624 this->ir.declared = true;
630 625