Debian Codegraph @

gcc/testsuite/gfortran.dg/asan/associate_59.f90

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-O0" }
3 !
4 ! PR fortran/104228
5 ! The code generated code for the program below wrongly pushed the Y character
6 ! length variable to both P and S scope, which was leading to an ICE when
7 ! address sanitizer was in effect
8
9 program p
10 character(:), allocatable :: x(:)
11 call s
12 contains
13 subroutine s
14 associate (y => x)
15 y = [x]
16 end associate
17 end
18 end
19