mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fixed a segfault when compiling fail_compilation/fail105.d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user