1! { dg-do compile }
2
3! PR fortran/35846
4! Nested three levels deep.
5
6! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7
8implicit none
9character(len=3) :: c(3)
10c = 'a'
11c = (/ (/ 'A'//(/ trim(c(1)), 'a' /)/)//'c', 'dcd' /)
12print *, c(1)
13print *, c(2)
14print *, c(3)
15end
16