repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gcc/fortran/
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
assumed_charlen_arg_2.f90
blob
e9481d8ec8ed5fe1b99ede611cafec5039ade51f
1
! { dg-do compile }
2
!
3
! PR 50585: [4.6/4.7 Regression] ICE with assumed length character array argument
4
!
5
! Contributed by Stuart Mentzer <sgm@objexx.com>
6
7
SUBROUTINE
SUB1
(
str
)
8
IMPLICIT NONE
9
CHARACTER
(
len
=*) ::
str
(
2
)
10
CALL
SUB2
(
str
(
1
)(:
3
) )
11
END SUBROUTINE
12
13
SUBROUTINE
SUB2
(
str
)
14
IMPLICIT NONE
15
CHARACTER
(*) ::
str
16
END SUBROUTINE