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

[#457] Fix partial specialisation matching for deduced primitive types #458

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

davmac314
Copy link
Contributor

Current partial specialisation selection matches deduced type by IBinding, not by IType, meaning that it can't work for types (such as primitive types) that aren't represented by an IBinding. Fix that by wrapping the result of resolution in a type which can handle either.

@jonahgraham
Copy link
Member

Thanks for the PR - for now I make the same comment as #448 (comment)

@davmac314
Copy link
Contributor Author

Rebased on current main.

@i-garrison
Copy link
Contributor

This change looks good and functions as advertised.

@jonahgraham jonahgraham added the language C/C++ Language Support label Oct 11, 2023
@jonahgraham
Copy link
Member

At recent CDT calls we discussed how to handle reviews where there is insufficient expertise to review amongst existing committers and decided to accept such changes that look reasonable and appear sufficiently tested.

…mitive types

Current partial specialisation selection matches deduced type by
IBinding, not by IType, meaning that it can't work for types (such as
primitive types) that aren't represented by an IBinding. Fix that by
wrapping the result of resolution in a type which can handle either.
@jonahgraham
Copy link
Member

I needed to rebase manually due to conflicts with other recently merged changes.

@davmac314
Copy link
Contributor Author

Thanks @jonahgraham !

@jonahgraham jonahgraham merged commit 232b24c into eclipse-cdt:main Dec 28, 2023
5 checks passed
@jonahgraham jonahgraham added this to the 11.5.0 milestone Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language C/C++ Language Support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants