https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85781
--- Comment #1 from G. Steinmetz <gs...@t-online.de> --- Some variants that are actually compiling : $ cat z2.f90 subroutine s(x) bind(c) use iso_c_binding, only: c_char character(kind=c_char), value :: x print *, x(1:0) end $ cat z3.f90 subroutine s(x) use iso_c_binding, only: c_char character(kind=c_char), value :: x print *, x(2:1) end