blob: b5ea75498b7ca6ab8c6b17f843a0535d56c0201d [file] [log] [blame]
! { dg-do compile }
! { dg-additional-options "-O0" }
!
! PR fortran/104228
! The code generated code for the program below wrongly pushed the Y character
! length variable to both P and S scope, which was leading to an ICE when
! address sanitizer was in effect
program p
character(:), save, allocatable :: x(:)
call s
contains
subroutine s
associate (y => x)
y = [x]
end associate
end
end