A DECLARE TARGET directive without a list can only appear in a specification part of a subroutine subprogram, function subprogram or interface body to which it applies.
Thank you for your interest in this diagnostic message.We are still in the process of documenting this specific diagnostic.
Please let us know of your experience with this diagnostic message by posting a comment below. Your interest in this diagnostic will help us prioritize the order we document diagnostics.