AA struct hashing bug?

Random D user via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 8 03:04:49 PST 2015


On Tuesday, 8 December 2015 at 01:23:40 UTC, Ivan Kazmenko wrote:
> On Monday, 7 December 2015 at 22:03:42 UTC, Alex Parrill wrote:
>> On Monday, 7 December 2015 at 18:48:18 UTC, Random D user
> Tested the same code with -m32 and -m64 on Windows.  Works for 
> me, too.

I tried this again. And it seems it might be my bug or that the 
runtime somehow corrupts it's state. Scary.

So I have an App class that gets created in main.
Basically
App = new App
App.start();

If I put that code as the first thing in the constructor 
everything works.
If I put that code as the first thing in the first method after 
constructor it crashes.
And that code is completely unrelated to everything else.
Without the code snippet the whole app works fine.
Also if I wrap the code in a local funtion or class, it works 
fine even in the first method.

I need to look into this more.


More information about the Digitalmars-d-learn mailing list