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/36341] MATMUL: Bounds check missing (run time & compile time)



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


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