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

Handle template binary operations with different types #2802

Merged
merged 3 commits into from
Nov 4, 2023

Conversation

ansharlubis
Copy link
Contributor

I got the program mentioned in #2771 to work with different types real and integer.

subroutine f()
  ...
  instantiate axpy_tmpl(real, integer, real, real, operator(+), operator(*))
  ...
end subroutine

@ansharlubis ansharlubis marked this pull request as ready for review November 4, 2023 09:10
@ansharlubis ansharlubis added the generics Fortran 202Y Generics label Nov 4, 2023
Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is fine.

@certik certik merged commit 9eaf7da into lfortran:main Nov 4, 2023
20 checks passed
@certik
Copy link
Contributor

certik commented Nov 4, 2023

Thanks!

@ansharlubis ansharlubis deleted the bug-2771-types branch December 12, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generics Fortran 202Y Generics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants