You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
containsSUBROUTINEsub1()
integer:: i
!$acc parallel loop gang vector &
do i =1, 10end doENDSUBROUTINEsub1
END MODULE mod1
"dummy.f90:mod1", line 10: 'do' is not found for'enddo'
The text was updated successfully, but these errors were encountered:
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
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.The text was updated successfully, but these errors were encountered: