[Issue 20779] Segfault when self-containing struct is accessed from inside in a __traits(compiles) context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 28 10:42:15 UTC 2020


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

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

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11070 "Fix issue 20779: compiler segfaults when struct
contains itself" was merged into stable:

- cf4c82efdadfc74c1973f66a16254ec886380c20 by Mathis Beer:
  Fix issue 20779: compiler segfaults when struct contains itself
  When working with metaprogramming, the error message saying that the
  struct should not contain itself can get swallowed by gagging.
  In this case, only the segfault remains, leading to an unsatisfactory
  user experience. Fix the segfault by breaking the infinite recursion.

https://github.com/dlang/dmd/pull/11070

--


More information about the Digitalmars-d-bugs mailing list