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

Extra continuous symbol (&) in pragma can break the parsing #82

Open
clementval opened this issue Aug 24, 2018 · 0 comments
Open

Extra continuous symbol (&) in pragma can break the parsing #82

clementval opened this issue Aug 24, 2018 · 0 comments

Comments

@clementval
Copy link
Collaborator

The following code breaks because of the & and no real continuation of the pragma. As pragma are comments and not really part of the standard, this is really up to the compiler to decide to accept this or not. gfortran accepts it for example.

MODULE mod1

contains

  SUBROUTINE sub1()
    integer :: i
    
    !$acc parallel loop gang vector &
    do i = 1, 10
    end do
  END SUBROUTINE sub1

END MODULE mod1
"dummy.f90:mod1", line 10: 'do' is not found for 'enddo'
@clementval clementval self-assigned this Aug 24, 2018
@clementval clementval changed the title Extra continuous symbol in pragma can break the parsing Extra continuous symbol (&) in pragma can break the parsing Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant