annotate gcc/testsuite/gfortran.dg/proc_ptr_comp_22.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 41978: [F03] ICE in gfc_conv_expr_descriptor for array PPC assignment
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Daniel Kraft <domob@gcc.gnu.org>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 MODULE m
kono
parents:
diff changeset
8 IMPLICIT NONE
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 TYPE t
kono
parents:
diff changeset
11 PROCEDURE(myproc), POINTER, PASS :: myproc
kono
parents:
diff changeset
12 END TYPE t
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 CONTAINS
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 INTEGER FUNCTION myproc (me)
kono
parents:
diff changeset
17 CLASS(t), INTENT(IN) :: me
kono
parents:
diff changeset
18 myproc = 42
kono
parents:
diff changeset
19 END FUNCTION myproc
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 END MODULE m
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 PROGRAM main
kono
parents:
diff changeset
24 USE m
kono
parents:
diff changeset
25 IMPLICIT NONE
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 TYPE(t) :: arr(2)
kono
parents:
diff changeset
28 arr%myproc => myproc ! { dg-error "must not have the POINTER attribute" }
kono
parents:
diff changeset
29 END PROGRAM main
kono
parents:
diff changeset
30