Program TR15581 
   Implicit None 
   Real, Dimension(:), Allocatable :: A 
   TYPE TR 
      Real, Dimension(:), Allocatable :: V 
   End TYPE TR 
   TYPE(TR) :: B 
   Integer :: ios
   !
   Write(*,*) ALLOCATED(A) 
   Write(*,*) ALLOCATED(B%V) 
   !
   Allocate( A(10) , Stat=ios )
   If ( ios /= 0)  STOP " Pb-1 "
   Allocate( B%V(20) , Stat=ios )
   If ( ios /= 0)  STOP " Pb-2 "
   !
   Write(*,*) ALLOCATED(A) 
   Write(*,*) ALLOCATED(B%V) 
   !
   Deallocate( A , B%V )
   !
   STOP " "
   !      
End Program TR15581
