Mercurial > projects > ldc
diff gen/toir.cpp @ 656:a15ccbf7451d
Support structs that are merely a forward reference. See mini/forwdecl1.d
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 14:06:55 +0200 |
parents | 2a0bcf7f7b3d |
children | 43d2ab9833bf |
line wrap: on
line diff
--- a/gen/toir.cpp Mon Oct 06 12:46:57 2008 +0200 +++ b/gen/toir.cpp Mon Oct 06 14:06:55 2008 +0200 @@ -129,10 +129,10 @@ 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)) {