Strange memory corruption / codegen bug?

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 11 03:58:39 PST 2016


On 12/11/2016 12:43 PM, TheGag96 wrote:
> On Sunday, 11 December 2016 at 11:17:50 UTC, rikki cattermole wrote:
>> Not public, please pastebin.
>
> https://github.com/TheGag96/evo-pacman/blob/master/source/pacman/tree.d#L135
>
>
> I just put it on GitHub. No idea why the repo wasn't public even after I
> set it to be public...

Try putting an `assert(childCrossPoint !is otherCrossPoint);` before the 
assignment. If it fails, the variables refer to the same node. That 
would explain how otherCrossPoint.left gets set.

Also, what compiler are you using, what version of it, and on which 
platform?


More information about the Digitalmars-d-learn mailing list