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

--- Comment #5 from Jacob Carlborg <d...@me.com> ---
(In reply to Martin Nowak from comment #4)
> Apparently happens b/c of __dmd_personality_v0 being emitted with -betterC.
> A simple workaround is to add a dummy personality symbol to your binary,
> e.g. in the same object file as main.
> 
> extern(C) __gshared int __dmd_personality_v0;

Yeah, that works.

> Not sure if we did disable EH for -betterC. Would make sense, right?

I guess. Unless we can limit it to something like Errors which cannot be
caught. Or somehow use what the C++ runtime provides, if that would help.

BTW, how did this work in DMD 2.070.0? It didn't have anything similar to
__dmd_personality_v0?

--

Reply via email to