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

rename symbol in paramter list of function breaks when & is used #86

Open
JHenneberg opened this issue Apr 12, 2022 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@JHenneberg
Copy link

JHenneberg commented Apr 12, 2022

Hi,

renaming some to other fails when:

  function mySub(some) result(res) &
      bind(c, NAME="someName")
    implicit none

    integer(4), intent(in) :: some
    integer(4) :: res

    write(*, *) some

  end function mySub

Same is true for res, but changing the function name still works.

without ampersand it is working:

  function mySub(some) result(res) bind(c, NAME="someName")
    implicit none

    integer(4), intent(in) :: some
    integer(4) :: res

    write(*, *) some

  end function mySub

Edit: Might be also related to #59

@gnikit gnikit self-assigned this Apr 12, 2022
@gnikit gnikit added the bug Something isn't working label Apr 12, 2022
@gnikit
Copy link
Member

gnikit commented Apr 12, 2022

thanks for the bug report @JHenneberg I will have a look at it whenever I get some free time. Please be also aware of this rename bug #52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants