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

Ketmar Dark <ket...@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ket...@ketmar.no-ip.org

--- Comment #1 from Ketmar Dark <ket...@ketmar.no-ip.org> ---
it segfaults when it tries to print this error inside `hasNestedArgs` in
dtemplate.d:

error("%s is nested in both %s and %s", toChars(), enclosing.toChars(),
dparent.toChars());

somehow it ends in "nested" checks with `Dsymbol dparent = sa.toParent2();` as
`null`, and don't bother to double-check if template really has any parent.

it seems that adding a simple check there doesn't really breaks anything (it
shouldn't! ;-), so it can be used as workaround until the real fix will be
done.

--

Reply via email to