-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from gnikit:gnikit/issue157
Erroneous diagnostic error with "recursive" argument in arg list
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
program test_arg_names_as_keywords | ||
implicit none | ||
integer, parameter :: impure = 8 | ||
contains | ||
subroutine foo(recursive, ierr) | ||
integer, intent(in) :: recursive | ||
integer, intent(out) :: ierr | ||
print*, recursive | ||
end subroutine foo | ||
real(8) impure elemental function foo2(recursive, elemental) result(pure) | ||
integer, intent(in) :: recursive, elemental | ||
end function foo2 | ||
real( kind = impure ) pure elemental function foo3(recursive) result(pure) | ||
integer, intent(in) :: recursive | ||
end function foo3 | ||
subroutine foo4(& | ||
recursive, & | ||
ierr) | ||
integer, intent(in) :: recursive | ||
integer, intent(out) :: ierr | ||
print*, recursive | ||
end subroutine foo4 | ||
pure real(impure) function foo5(recursive) result(val) | ||
integer, intent(in) :: recursive | ||
end function foo5 | ||
end program test_arg_names_as_keywords |