This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36341] MATMUL: Bounds check missing (run time & compile time)
- 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: 27 May 2008 16:34:51 -0000
- Subject: [Bug fortran/36341] MATMUL: Bounds check missing (run time & compile time)
- References: <bug-36341-14178@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2008-05-27 16:34 -------
gfortran should do better. NAG f95 detects at compile time:
dzeta=matmul(U,B)
Error: Array shapes differ in dimension 1 (extent 6 and 7)
Here, dzeta is (6,12) and matmul(U,B) is (7,12).
gfortran does not even detect it at run time (-fbounds-check).
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |27766
nThis| |
Keywords| |diagnostic
Summary|Matrix assignment error not |MATMUL: Bounds check missing
|detected |(run time & compile time)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36341