aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/substr_1.f90
blob: 15ab390f9062b567c84807de92c485819cb7635d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! we used to save the wrong components of a gfc_expr describing a
! substring of a constant string.  This yielded a segfault on
! translating the expressions read from the module.
module m
  character (*), parameter :: a = "AABBCC"(1:4)
end module m

use m
character(4) :: b
b = a
end