https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120298

            Bug ID: 120298
           Summary: Use of do concurrent breaks use of semicolon as
                    statement separator
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: j...@bolding-bruggeman.com
  Target Milestone: ---

The following triggers "Error: Syntax error in DO statement" in gfortran
15.1.0:

program foo
  integer :: i,j
  do concurrent (i=1:2);j=i
  end do
end program

Whereas the following compiles fine:

program foo
  integer :: i,j
  do concurrent (i=1:2)
    j=i
  end do
end program

Shouldn't the semicolon still work as statement separator in this case?

Jorn

Reply via email to