PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_comp_30.f90
blobafcc4c73f28a9296526fa899fa27ed6b05f4f9ac
1 ! { dg-do compile }
3 ! PR 47768: ICE: printing a derived-type variable with proc-pointer components
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 type :: t
8 integer :: i = 3
9 procedure(type(t)), pointer, nopass :: ppc
10 end type
12 type(t) :: x
14 print *,x ! { dg-error "cannot have procedure pointer components" }
15 end