Skip to content

[cxx-interop] Correctly import static function templates. #35548

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

Merged

Conversation

zoecarver
Copy link
Contributor

Handle static members the same way we handle other member function templates. Also, set the "static"ness of the new (specialized) function decl.

@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Jan 22, 2021
@zoecarver zoecarver requested review from hlopko and gribozavr January 22, 2021 01:11
@zoecarver
Copy link
Contributor Author

This is required for #35085, just fyi.

@zoecarver
Copy link
Contributor Author

Just FYI: this is going to fail now that I updated test/Interop/Cxx/templates/member-templates-silgen.swift in #35416.

I'll fix the tests in #35547 then rebase + land. Thanks @gribozavr!

@zoecarver zoecarver force-pushed the cxx/fix-static-function-templates branch from 0dbee1d to 952426f Compare January 31, 2021 23:30
Handle static members the same way we handle other member function
templates. Also, set the "static"ness of the new (specialized) function decl.
@zoecarver zoecarver force-pushed the cxx/fix-static-function-templates branch from 952426f to 02b5118 Compare January 31, 2021 23:49
@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

@zoecarver zoecarver merged commit 23d6312 into swiftlang:main Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants