Debian Codegraph @

gcc/testsuite/gfortran.dg/pr111853.f90

raw
1 ! { dg-do compile }
2 !
3 ! A null dereference fixed
4 !
5 ! Contributed by Daniel Otero <[email protected]>
6 !
7 subroutine foo (rvec)
8 TYPE vec_rect_2D_real_acc
9 INTEGER :: arr
10 END TYPE
11 CLASS(vec_rect_2D_real_acc) rvec
12
13 ASSOCIATE (arr=>rvec%arr)
14 call bar(arr*arr)
15 end associate
16 end