[Bug fortran/103411] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:6377

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Wed Nov 24 17:43:02 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103411

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

Detected :


$ cat z2.f90
program p
   integer, parameter :: b(2,2) = reshape([1,2,3], [2,2])
   print *, b
end


$ gfortran-12-20211121 -c z2.f90
z2.f90:2:42:

    2 |    integer, parameter :: b(2,2) = reshape([1,2,3], [2,2])
      |                                          1
Error: Without padding, there are not enough elements in the intrinsic RESHAPE
source at (1) to match the shape


More information about the Gcc-bugs mailing list