On 6/13/23 1:06 PM, mw wrote:
https://issues.dlang.org/show_bug.cgi?id=20812
JR 2020-05-08 19:17:02 UTC
Manjaro/Arch x86_64, dmd 2.091.1. ldc does not seem to be affected.
GDC also fails.
```
shared string[string] aa;
void main()
{
aa = [ "abc" : "123" ];
}
```
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7de2239 in _d_assocarrayliteralTX () from
/usr/lib/libphobos2.so.0.91
https://run.dlang.io/is/D7AhPD
Could not get a real backtrace into phobos as dmd built with digger
crashes when compiling due to issue #18026.
I tried the memoryerror registration, but that doesn't give any more
information.
It's unfortunate that LDC works, as that comes with a debug-built
druntime/phobos you can use.
As far as I can tell, this problem has been occurring for a long time.
BTW, you don't need to define it in global space, just:
```d
void main()
{
shared aa = ["abc": "123"];
}
```
-Steve