https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100950
G. Steinmetz <gs...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #1 from G. Steinmetz <gs...@t-online.de> --- Works with a parameter : $ cat z2.f90 program p character(4), parameter :: x = '1234' print *, [character(len(x(1:2))) :: 'a', 'b'] end $ gfortran-12-20210606 z2.f90 && ./a.out a b