https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104311
Bug ID: 104311
Summary: [9/10/11/12 Regression] ICE out of memory
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Affects versions down to r8, changed between 20190208 and 20190308 :
(follow-up of pr104227)
$ cat z1.f90
program p
type t
end type
type(t) :: x(2)
x = transfer(1, x, huge(1))
end
$ gfortran-7 -c z1.f90
z1.f90:5:3:
x = transfer(1, x, huge(1))
1
Error: Different shape for array assignment at (1) on dimension 1 (2 and
2147483647)
$ gfortran-12-20220130 -c z1.f90
GNU MP: Cannot allocate memory (size=8)
f951: out of memory allocating 139 bytes after a total of 1499426816 bytes