Fixed a segfault when compiling fail_compilation/fail105.d

This commit is contained in:
Alexey Prokhin
2011-07-23 14:06:59 +04:00
parent 457f4dffbe
commit 46c241009d

View File

@@ -1026,6 +1026,8 @@ LLConstant* CastExp::toConstElem(IRState* p)
Lerr:
error("can not cast %s to %s at compile time", e1->type->toChars(), type->toChars());
if (!global.gag)
fatal();
return NULL;
}