-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differentiate C++ catch clauses from D ones by wrapping std::type_inf…
…o pointers inside __cpp_type_info_ptr class instances like DMD does. Previously assuming in the personality routine that encountering a C++ exception meant that catch clauses were raw std::type_info pointers was wrong in cases like: try { throwStdException(); // external C++ function throwing a std::exception } catch (Throwable t) { (...) } Generated __cpp_type_info_ptr constants receive the same mangling that they do within DMD.
- Loading branch information
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters