Segfault upon modifying immutable AA in static this

Kenji Hara via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 24 14:52:46 PST 2015


On Saturday, 24 January 2015 at 13:29:36 UTC, Nordlöw wrote:
> The issue originates from module level intialization of static 
> immutable AAs at
>
> https://github.com/nordlow/justd/blob/master/conv_ex.d
>
> Do I have to change the initialization of the AAs to be 
> explicitly inline at definition of the AAs or can I preserve my 
> convenient foreach over the AAs in the `static this` to 
> automatically get the integer value to be stored?
>
> Note that this does not segdefault on latest stable DMD 2.066.

It's a regression in git-head.

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

Kenji Hara


More information about the Digitalmars-d-learn mailing list