[Issue 14240] Segfault while compiling templated code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 3 19:47:38 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14240
--- Comment #1 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
diff --git a/src/interpret.c b/src/interpret.c
index 9b358e9..bb3e2c3 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -730,7 +730,7 @@ Expression *ctfeInterpret(Expression *e)
return e;
assert(e->type); // Bugzilla 14642
//assert(e->type->ty != Terror); // FIXME
- if (e->type->ty == Terror)
+ if (!e->type || e->type->ty == Terror)
return new ErrorExp();
unsigned olderrors = global.errors;
--
More information about the Digitalmars-d-bugs
mailing list