! { dg-do compile } ! ! PR 48699: [OOP] MOVE_ALLOC inside SELECT TYPE ! ! Contributed by Salvatore Filippone program testmv2 type bar integer, allocatable :: ia(:), ja(:) end type bar class(bar), allocatable :: sm,sm2 allocate(sm2) select type(sm2) type is (bar) call move_alloc(sm2,sm) end select end program testmv2