[Issue 17759] struct that attempts to implicitly cast away const causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 18 15:51:44 UTC 2018


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

bitter.taste at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bitter.taste at gmx.com

--- Comment #2 from bitter.taste at gmx.com ---
This happens because the built-in `opEquals' that's synthesized by the compiler
contains a condition such as `(p == q)` that's recursively expanded into
`(p.foo == q) and `(p.foo.foo == q)`.
The problem lies in `resolvePropertiesX' that keeps assembling this crazy chain
where the `p' is substituted every step.

--


More information about the Digitalmars-d-bugs mailing list