[Bug fortran/100950] ICE in output_constructor_regular_field, at varasm.c:5514
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Jun 7 17:34:35 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100950
G. Steinmetz <gscfq@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
--- Comment #1 from G. Steinmetz <gscfq@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
More information about the Gcc-bugs
mailing list