This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29572] Bounds check should check size of array: d(1:1,1:1) = a(1:4,1:4)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2006 19:35:05 -0000
- Subject: [Bug fortran/29572] Bounds check should check size of array: d(1:1,1:1) = a(1:4,1:4)
- References: <bug-29572-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2006-11-08 19:35 -------
Actually, if I remove the transpose, the run-time error message is:
a.out: /home/tob/projects/gcc/libgfortran/generated/matmul_c4.c:172: matmul_c4:
Assertion `count == b->dim[0].ubound + 1 - b->dim[0].lbound' failed.
See also PR 28849 (for reshape).
Depending on the planned solution, this is a quite general problem:
array = function()
where function is not only a library function, but could also be a user-defined
function.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-11-08 19:35:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29572