From 46c241009d7964817c2389cd6eeedc2401a6cb88 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Sat, 23 Jul 2011 14:06:59 +0400 Subject: [PATCH] Fixed a segfault when compiling fail_compilation/fail105.d --- gen/toir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gen/toir.cpp b/gen/toir.cpp index 50780a00..538b9331 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -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; }