This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29572] Bounds check should check size of array: d(1:1,1:1) = a(1:4,1:4)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]