https://issues.dlang.org/show_bug.cgi?id=16244

Ketmar Dark <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Ketmar Dark <[email protected]> ---
fix:

diff --git a/src/dtemplate.d b/src/dtemplate.d
index a5ca897..257ba2a 100644
--- a/src/dtemplate.d
+++ b/src/dtemplate.d
@@ -4883,7 +4883,7 @@ extern (C++) bool reliesOnTident(Type t,
TemplateParameters* tparams = null, siz
         {
             //printf("CallExp::reliesOnTident('%s')\n", e.toChars());
             visit(cast(UnaExp)e);
-            if (!result)
+            if (!result && e.to) // e.to can be null for `cast()`
                 e.to.accept(this);
         }
.
--.
2.9.0

--

Reply via email to