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
re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
nested_array_constructor_3.f90
blob
9d74e78488d7c3ad773a5a7abd46a2801efa9a82
1
! { dg-do run }
2
3
! PR fortran/35846
4
! Alternate test that also produced an ICE because of a missing length.
5
6
PROGRAM
test
7
IMPLICIT NONE
8
CHARACTER
(
LEN
=
2
) ::
x
9
10
x
=
'a'
11
CALL
sub
( (/
TRIM
(
x
),
'a'
/) //
'c'
)
12
END PROGRAM
13
14
SUBROUTINE
sub
(
str
)
15
IMPLICIT NONE
16
CHARACTER
(
LEN
=*) ::
str
(
2
)
17
WRITE
(*,*)
str
18
19
IF
(
str
(
1
) /=
'ac'
.
OR
.
str
(
2
) /=
'ac'
)
THEN
20
STOP
1
21
END IF
22
END SUBROUTINE
sub