[Bug libfortran/18857] MATMUL failing with ALLOCATED matrices, unless base indices given
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 8 23:44:00 GMT 2004
------- Additional Comments From tobi at gcc dot gnu dot org 2004-12-08 23:44 -------
The error is precise a->base == 0 is not true, because we don't initialize it to
zero: from the t02.original dump:
unity.data = 0B;
w.data = 0B;
x.data = 0B;
{
real8[] * * D.475;
unity.dtype = 538;
unity.dim[0].lbound = 1;
unity.dim[0].ubound = 2;
unity.dim[0].stride = 1;
unity.dim[1].lbound = 1;
unity.dim[1].ubound = 2;
unity.dim[1].stride = 2;
D.475 = &unity.data;
_gfortran_allocate (D.475, 32, 0);
unity.offset = -3; <----------------------------------------
}
and the same for w and x.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18857
More information about the Gcc-bugs
mailing list