2 ! Test the fix for PR79434 in which the PRIVATE attribute of the
3 ! component 'i' of the derived type 't' was not respected in the
6 ! Contributed by Reinhold Bader <Bader@lrz.de>
17 type, public, extends(t) :: u
22 module subroutine fu(this)
23 type(u), intent(inout) :: this
27 submodule (mod_encap_u) s_u
30 ! the following statement should cause the compiler to
31 ! abort, pointing out a private component defined in
32 ! a USED module is being accessed
33 this%i = 2 ! { dg-error "is a PRIVATE component" }