-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arc: cpp exceptions don't work #13402
Comments
The only remaining problem is that |
I guess an important motivation to compile to C++ is to be able to use C++ libraries without C bindings? |
@cooldome As a compromise I could merge the PR now disabling the now failing test and later investigate so that gc:arc with nim cpp works better than before. |
@Araq, that would be fantastic solution solution. Much appreciated. |
I can imagine. In the long run I hope to have a much better "cpp2nim" tool that wraps the C++ code into DLLs that we then call from Nim, but how to deal with template instantiations is a huge problem. So there might no other way out but to support "nim cpp" for forever. Maybe with a rewrite of the backend things become easier. |
PR #13065 is submitted closing |
Compile as
nim cpp --gc:arc $1
to get a crash at runtime.Crashes with stacktrace:
Works with c backend but not with cpp.
The text was updated successfully, but these errors were encountered: