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

            Bug ID: 87401
           Summary: [9 Regression] Runtime segfault with associated
                    intent(out) variable
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

This regression is most probably due to r264506 (PR 41453):


program assoc_intent_out

   implicit none

   real :: r

   associate(o => r)
      call sub(o)
   end associate

contains

   subroutine sub(out)
      real, intent(out) :: out
      out = 0.0
   end subroutine

end


With current trunk this fails at runtime with a segfault on the line "out =
0.0".

Reply via email to