Open Heromyth opened 5 years ago
I ran into the same issue. The relevant DMD bug is https://issues.dlang.org/show_bug.cgi?id=21235 and somewhat https://issues.dlang.org/show_bug.cgi?id=19091 - or rather, as I understand it, 19091 turns the compiler bug of 21235 into a linker error.
I hacked around it locally by copying std.data.json and taggedalgebraic into my library and making opEquals nontemplated, thus sidestepping the issue. But that can't be upstreamed in taggedalgebraic because I had to disable a bunch of unittests to make it work.
OS: Linux Mint 19.1 Cinnamon Compiler: DMD 2.084 Command line:
dub run --compiler=dmd -a=x86_64 -b=debug
Test code:
Error message:
By the way:
dub run --compiler=dmd -a=x86_64 -b=debug
.