repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
coarray_ptr_comp_3.f08
blob
efdfb367040aae90807d329764ca7dc07994fbef
1
! { dg-do compile }
2
! { dg-options "-fcoarray=lib" }
3
4
program ptr_comp
5
type t
6
integer, pointer :: z(:)
7
end type
8
type(t), save :: obj[*]
9
integer, allocatable, target :: i(:)[:]
10
11
obj%z => i(:)[4] ! { dg-error "shall not have a coindex" }
12
end program
13