[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 09:31:00 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20779
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@FeepingCreature created dlang/dmd pull request #11070 "Fix issue 20779:
compiler segfaults when struct contains itself" fixing this issue:
- 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