! { dg-do run } ! ! PR 43207: [OOP] ICE for class pointer => null() initialization ! ! Original test case by Tobias Burnus ! Modified by Janus Weil implicit none type :: parent end type type(parent), target :: t class(parent), pointer :: cp => null() if (associated(cp)) call abort() cp => t if (.not. associated(cp)) call abort() end