ldc2 exception handling on macOS
Sergey
kornburn at yandex.ru
Sun Jun 2 08:26:24 UTC 2024
On Sunday, 2 June 2024 at 07:08:23 UTC, Peter Jacobs wrote:
> I am working on a reasonable large Dlang program that links to
> C and Fortran libraries.
Sounds interesting. In which area is your project? Scientific
computations?
> Am I just using the compiler incorrectly or is there a bug?
I will try to bring attention of LDC devs to the question, but
maybe next time it will better to ask such questions in LDC
channel.
I have no idea what's going on there, just can confirm the
behavior on my M1 Pro is the same with LDC 1.38
I've tinkered with the code a bit and found the workaround (even
don't know why is it working):
if you add `pragma(inline, true):` before `string
get_stuff(string incoming)` it is catching exception even without
-O..
More information about the Digitalmars-d
mailing list