mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-01 04:23:14 +01:00
Support structs that are merely a forward reference. See mini/forwdecl1.d
This commit is contained in:
@@ -129,10 +129,10 @@ DValue* VarExp::toElem(IRState* p)
|
||||
if (vd->isDataseg() || (vd->storage_class & STCextern)) {
|
||||
vd->toObjFile(0); // TODO: multiobj
|
||||
}
|
||||
if (!vd->ir.isSet() || !vd->ir.getIrValue() || DtoType(vd->type)->isAbstract()) {
|
||||
error("global variable %s not resolved", vd->toChars());
|
||||
if (!vd->ir.isSet() || !vd->ir.getIrValue()) {
|
||||
error("variable %s not resolved", vd->toChars());
|
||||
if (Logger::enabled())
|
||||
Logger::cout() << "unresolved global had type: " << *DtoType(vd->type) << '\n';
|
||||
Logger::cout() << "unresolved variable had type: " << *DtoType(vd->type) << '\n';
|
||||
fatal();
|
||||
}
|
||||
if (vd->isDataseg() || (vd->storage_class & STCextern)) {
|
||||
|
||||
Reference in New Issue
Block a user