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

            Bug ID: 84622
           Summary: [F08] gfortran accepts invalid intent(out) polymorphic
                    dummy argument with coarray component
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: damian at sourceryinstitute dot org
  Target Milestone: ---

gfortran 7 and 8 accept the following invalid code when the dummy argument is
declared with "class" but give the correct error message when "type" replaces
"class":

  type foo
    logical, allocatable :: bar[:]
  end type
contains
  subroutine foobar(this)
    class(foo), intent(out) :: this
  end subroutine
end

Reply via email to