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