blob: 808f41c708465df42488fd3d351d2ba094de3bcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
subroutine gfc_debug_bug (n,m,k,ax,bx,c)
! above line must be the first line
! { dg-do compile }
! { dg-options "-g" }
! PR 19195
! we set line numbers wrongly, which made the compiler choke when emitting
! debug information.
implicit none
integer :: n, m
integer :: k(n+m)
real :: ax(:), bx(n), c(n+m)
integer :: i
real :: f
i = k(n)
f = c(n)
f = bx(n)
f = ax(n)
end subroutine gfc_debug_bug
|