[Issue 15755] DMD segfault upon alias on alias on __trait(getAttributes, ...)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Mar 4 05:53:39 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15755
Ketmar Dark <ketmar at ketmar.no-ip.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ketmar at ketmar.no-ip.org
--- Comment #1 from Ketmar Dark <ketmar at 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.
--
More information about the Digitalmars-d-bugs
mailing list