! { dg-do compile }!! Contributed by Gerhard Steinmetz <gscfq@t-online.de>!program p
type t
character(:),pointer:: a
end typetype(t) :: z
character((0.)/0), target :: c ='abc'! { dg-error "Division by zero" }
z%a => c
! The associate statement was not needed to trigger the ICE.associate(y => z%a)print*, y
end associate
end