Thread overview
[Issue 15755] DMD segfault upon alias on alias on __trait(getAttributes, ...)
Mar 04, 2016
Ketmar Dark
Mar 04, 2016
ag0aep6g@gmail.com
Jun 12, 2018
RazvanN
March 04, 2016
https://issues.dlang.org/show_bug.cgi?id=15755

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

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

--- Comment #1 from Ketmar Dark <ketmar@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.

--
March 04, 2016
https://issues.dlang.org/show_bug.cgi?id=15755

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |ag0aep6g@gmail.com

--
June 12, 2018
https://issues.dlang.org/show_bug.cgi?id=15755

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
PR: https://github.com/dlang/dmd/pull/8353

--
June 19, 2018
https://issues.dlang.org/show_bug.cgi?id=15755

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f11c8ba75ca131df0c228fde9e81b7df07fb7490 Fix Issue 15755 - DMD segfault upon alias on alias on __trait(getAttributes, ...)

https://github.com/dlang/dmd/commit/d23320ce8c4d17e816b425d5aadddde34272238e Merge pull request #8353 from RazvanN7/Issue_15755

Fix Issue 15755 - DMD segfault upon alias on alias on __trait(getAttributes,
...)

--
June 19, 2018
https://issues.dlang.org/show_bug.cgi?id=15755

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--