! { dg-do compile }! PR 70260 - this used to ICE! Original test case by Gehard Steinmetzmodule m
interface gkind
procedure g
end interfacecontainsinteger functiong()
g =>1! { dg-error "Pointer assignment target cannot be a constant" }endsubroutinef(x)character(kind=kind(gkind())) :: x
endend