aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/char_result_18.f90
blob: f47c88ad4b3ba7bfc9e5c22a99fa3eadc23b983e (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
!
! Tests the fix for PR80657.
!
! Contributed by Vittorio Zecca  <zeccav@gmail.com>
!
function f(x)
implicit character(len(f)) (x) ! { dg-error "Self reference in character length" }
character(len(x)) f
end