DMD64 2.095.1 unresolved _D4core8internal7switch___T14__switch_error in optimized build only
x3g6h7k8
email at notworking.qrk
Sat Apr 10 19:35:24 UTC 2021
On Friday, 9 April 2021 at 14:59:16 UTC, x3g6h7k8 wrote:
> Thereafter I removed the __"inline"__ from the regular dub
> release buildOptions. With this change an executable was
> created.
Seems I missed that I also removed the `-release` switch, which
was the important one. It works with or w/o `inline`.
Instead of removing `-release` it's also possible to add
`-check=switch=off`.
Using `optimize` w/o `-release` has given me some headache with
active out-contracts in the Base64 module (Base64.encode(bytes))
leading to 0xc0000005 after a seemingly corrupted stack.
Unfortunately I can't really reproduce this in a small example.
Maybe this was simply the place where another problem manifested
itself.
More information about the Digitalmars-d-learn
mailing list