We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This unit test shows the bug:
def test_psyclone_boundary_expr_wrong(): code = """subroutine foo(a,b,c,n) integer :: n real*8, dimension(1:) :: a real*8, dimension(1:n) :: b real*8, dimension(n:) :: c real*8, dimension(:) :: d end subroutine foo\n""" reader = FortranReader() psyir_tree = reader.psyir_from_source(code) writer = FortranWriter() output = writer(psyir_tree) assert code == output
With this one gfortran -c test.f90 returns no error.
But with the one generated by psyclone, there is an error.
subroutine foo(a, b, c, n) integer :: n - real*8, dimension() :: a + real*8, dimension(1:) :: a ? ++ - real*8, dimension(n) :: b + real*8, dimension(1:n) :: b ? ++ real*8, dimension(n:) :: c real*8, dimension(:) :: d end subroutine foo
Here the error
>> gfortran test.f90 -c test.f90:3:21: 3 | real*8, dimension() :: a | 1 Error: Expected expression in array specification at (1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This unit test shows the bug:
With this one gfortran -c test.f90 returns no error.
But with the one generated by psyclone, there is an error.
Here the error
The text was updated successfully, but these errors were encountered: