[Bug fortran/56800] New: [fortran-dev Regression] move_alloc_13.f90 failure
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 1 14:57:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
Bug #: 56800
Summary: [fortran-dev Regression] move_alloc_13.f90 failure
Classification: Unclassified
Product: gcc
Version: fortran-dev
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tkoenig@gcc.gnu.org
The move_alloc_13 failure on the fortran-dev branch can be reduced
to a wrong setting of sm to zero in:
ig25@linux-fd1f:~/Krempel/Branch> cat mv.f90
type t
end type t
type, extends(t) :: t2
integer :: a
end type t2
class(t), allocatable :: y(:), z(:)
allocate(y(1), source=[t2(2)])
end
ig25@linux-fd1f:~/Krempel/Branch> gfortran -fdump-tree-original mv.f90
[...]
__builtin_memset (y._data.base_addr, 0, 4);
y._data.dtype = 41;
y._data.dim[0].lower_bound = 1;
y._data.dim[0].extent = 2 - y._data.dim[0].lower_bound;
y._data.dim[0].sm = 0;
y._data.offset = -1;
More information about the Gcc-bugs
mailing list