[Issue 5182] ICE(expression.c): calling unittest from a function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 8 03:15:34 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5182
--- Comment #2 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-11-08 03:14:28 PST ---
Patch to make SEGV an error:
--- dmd.orig/expression.c 2010-11-08 10:32:15.492440000 +0000
+++ dmd/expression.c 2010-11-08 10:39:28.404440000 +0000
@@ -2324,6 +2324,11 @@
if (!f->originalType && f->scope) // semantic not yet run
f->semantic(f->scope);
+ if (f->isUnitTestDeclaration())
+ {
+ error("cannot call unittest function '%s'", toChars());
+ return new ErrorExp();
+ }
if (!f->type->deco)
{
error("forward reference to %s", toChars());
Regards
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list