annotate gcc/testsuite/gfortran.dg/nested_array_constructor_5.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 ! PR fortran/35846
kono
parents:
diff changeset
4 ! This used to ICE because the charlength of the trim-expression was
kono
parents:
diff changeset
5 ! NULL, but it is switched around to test for the right operand of // being
kono
parents:
diff changeset
6 ! not a constant, too.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 character(len=2) :: c(2)
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 c = 'a'
kono
parents:
diff changeset
12 c = (/ (/ trim(c(1)), 'a' /) // (/ trim(c(1)), 'a' /) /)
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 print *, c
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 end