4 character (len
=4), pointer:: s1
5 character (len
=20), pointer :: p1
8 p1
=> s1(2:3) ! { dg-error "Unequal character lengths \\(20/2\\)" }
9 p1
=> c(1:) ! { dg-error "Unequal character lengths \\(20/4\\)" }
10 p1
=> c(:4) ! { dg-error "Unequal character lengths \\(20/4\\)" }