Lines Matching full:pointer
2 ! Pointer assignment constraints 10.2.2.2
16 !ERROR: 'p1' may not have both the POINTER and TARGET attributes
17 real, pointer :: p1, p3
18 !ERROR: 'p2' may not have both the POINTER and ALLOCATABLE attributes
20 !ERROR: 'sin' may not have both the POINTER and INTRINSIC attributes
21 real, intrinsic, pointer :: sin
23 pointer :: p2
24 !ERROR: 'a' may not have the POINTER attribute because it is a coarray
25 real, pointer :: a(:)[*]
33 real, pointer :: p
35 !ERROR: Target type REAL(8) is not compatible with pointer type REAL(4)
37 !ERROR: Target type LOGICAL(4) is not compatible with pointer type REAL(4)
44 real, pointer :: p(:)
46 !ERROR: Pointer has rank 1 but target has rank 2
54 type(t(1)), pointer :: p
56 !ERROR: Target type t(k=2_4) is not compatible with pointer type t(k=1_4)
63 type(t(1)), pointer :: p1
64 type(t2), pointer :: p2
65 class(*), pointer :: p3
66 real, pointer :: p4
69 …!ERROR: Pointer type must be unlimited polymorphic or non-extensible derived type when target is u…
71 …!ERROR: Pointer type must be unlimited polymorphic or non-extensible derived type when target is u…
79 real, pointer :: p
80 real, pointer, volatile :: q
82 !ERROR: Pointer must be VOLATILE when target is a VOLATILE coarray
84 !ERROR: Pointer may not be VOLATILE when target is a non-VOLATILE coarray
94 real, pointer :: a
98 !ERROR: The left-hand side of a pointer assignment is not definable
99 !BECAUSE: 'p' is not a pointer
102 !ERROR: The left-hand side of a pointer assignment is not definable
103 !BECAUSE: 'b' is not a pointer
108 !variable with either the TARGET or POINTER attribute and is not
110 !to a function that returns a data pointer.
113 real, pointer :: b
114 real, pointer :: c
118 …!ERROR: In assignment to object pointer 'b', the target 'd' is not an object with POINTER or TARGE…
126 real, pointer :: p(:)
127 !ERROR: An array section with a vector subscript may not be a pointer target
134 real, pointer :: p
136 …!ERROR: pointer 'p' is associated with the result of a reference to function 'f2' that is a not a …
140 real, pointer :: f1
152 real, pointer :: b
153 !ERROR: A coindexed object may not be a pointer target
165 type(t1), pointer :: c
172 real, pointer :: p
177 !OK: c has POINTER attribute
179 …!ERROR: In assignment to object pointer 'p', the target 'y%b%a' is not an object with POINTER or T…
186 !OK: c has POINTER attribute
190 …!ERROR: In assignment to object pointer 'p', the target 'z%a' is not an object with POINTER or TAR…
194 …!ERROR: In assignment to object pointer 'p', the target 'z' is not an object with POINTER or TARGE…