Skip to content
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

Differentiate C++ catch clauses from D ones with __cpp_type_info_ptr #2590

Merged
merged 1 commit into from
Feb 24, 2018

Commits on Feb 24, 2018

  1. 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.
    Syniurge authored and kinke committed Feb 24, 2018
    Configuration menu
    Copy the full SHA
    0afba53 View commit details
    Browse the repository at this point in the history