PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_result_18.f90
blobf47c88ad4b3ba7bfc9e5c22a99fa3eadc23b983e
1 ! { dg-do compile }
3 ! Tests the fix for PR80657.
5 ! Contributed by Vittorio Zecca <zeccav@gmail.com>
7 function f(x)
8 implicit character(len(f)) (x) ! { dg-error "Self reference in character length" }
9 character(len(x)) f
10 end