Skip to content

Commit

Permalink
Merge pull request #83 from sourceryinstitute/workaround-ifx-proc-ptr…
Browse files Browse the repository at this point in the history
…-in-pure

fix: work around ifx impure function-ref bug
  • Loading branch information
ktras authored May 2, 2024
2 parents a3d9df3 + 6651fa5 commit f3914ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ impure elemental module function contains_text(self, substring) result(match)
logical match
end function

#ifdef __INTEL_COMPILER
impure &
#endif
elemental module function equals(lhs, rhs) result(lhs_eq_rhs)
!! The result is .true. if the components of the lhs & rhs are equal
implicit none
Expand All @@ -73,4 +76,4 @@ elemental module function equals(lhs, rhs) result(lhs_eq_rhs)

end interface

end module sourcery_test_description_m
end module sourcery_test_description_m
2 changes: 1 addition & 1 deletion src/sourcery/sourcery_test_description_s.f90
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
module procedure equals
lhs_eq_rhs = (lhs%description_ == rhs%description_) .and. associated(lhs%test_function_, rhs%test_function_)
end procedure
end submodule sourcery_test_description_s
end submodule sourcery_test_description_s

0 comments on commit f3914ce

Please sign in to comment.