Flag unsupported namelist syntax embedded in a bare token.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | word | |||
| character(len=*), | intent(in) | :: | path | |||
| integer, | intent(in) | :: | line | |||
| character(len=:), | intent(inout), | allocatable | :: | errors(:) | ||
| integer, | intent(inout) | :: | n_err |
subroutine check_unsupported(word, path, line, errors, n_err) !! Flag unsupported namelist syntax embedded in a bare token. character(len=*), intent(in) :: word character(len=*), intent(in) :: path integer, intent(in) :: line character(len=:), allocatable, intent(inout) :: errors(:) integer, intent(inout) :: n_err if (index(word, "%") > 0) then call add_err(errors, n_err, make_prefix(path, line)// & "derived-type reference '"//trim(word)//"' is not supported") else if (index(word, "(") > 0) then call add_err(errors, n_err, make_prefix(path, line)// & "indexed assignment '"//trim(word)//"' is not supported") else if (is_repeat_count(word)) then call add_err(errors, n_err, make_prefix(path, line)// & "repeat-count syntax '"//trim(word)//"' is not supported") end if end subroutine check_unsupported