summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/assumed_charlen_arg_2.f90
blob: e9481d8ec8ed5fe1b99ede611cafec5039ade51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do compile }
!
! PR 50585: [4.6/4.7 Regression] ICE with assumed length character array argument
!
! Contributed by Stuart Mentzer <sgm@objexx.com>

SUBROUTINE SUB1( str )
  IMPLICIT NONE
  CHARACTER(len=*) :: str(2)
  CALL SUB2( str(1)(:3) )
END SUBROUTINE

SUBROUTINE SUB2( str )
  IMPLICIT NONE
  CHARACTER(*) :: str
END SUBROUTINE