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

Units bug with polymorphic functions calling polymorphic functions #32

Closed
dorchard opened this issue Jul 27, 2016 · 0 comments
Closed
Assignees

Comments

@dorchard
Copy link
Member

Example:

program squarePoly
  implicit none
  real :: x
  real :: y

  != unit(m) :: a
  real :: a
  != unit(s) :: b
  real :: b

  x = squareP(a)
  y = squareP(b)

  contains

  real function square(x)
    real :: x
    square = x * x
  end function

  real function squareP(x)
    real :: x
    squareP = square(x)
  end function

end program

is marked as inconsistent with the constraint:
constraint #<ParamUse squarepoly_squarep6[1] callId=1> === #<ParamUse squarepoly_square5[1] callId=2>
i.e., the second call to squareP is failing.

@dorchard dorchard assigned dorchard and mrd and unassigned dorchard Jul 27, 2016
@mrd mrd closed this as completed in 0ee98bc Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants