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

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

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

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


$ cat z3.f90
program p
   integer, parameter :: a(999) = 1
   integer, parameter :: b(1) = maskr(shape(a))
end


$ cat z4.f90
program p
   integer, parameter :: a(-99:999) = 1
   integer, parameter :: b(1) = maskr(shape(a))
end


$ gfortran-12-20211219 -c z3.f90
f951: internal compiler error: in gfc_convert_mpz_to_signed, at
fortran/simplify.c:193
0x82ac61 gfc_convert_mpz_to_signed(__mpz_struct*, int)
        ../../gcc/fortran/simplify.c:193
0x83225a gfc_simplify_maskr(gfc_expr*, gfc_expr*)
        ../../gcc/fortran/simplify.c:4888
0x7b12f6 do_simplify
        ../../gcc/fortran/intrinsic.c:4648
#...

Reply via email to