[patch, fortran] Check bounds for matrix-vector multiplication
Thomas Koenig
tkoenig@netcologne.de
Mon May 1 16:19:00 GMT 2017
Hello world,
the attached patch also performs a check for matrix-vector
multiplication. I found it by poking around the source while
looking to do some improvements, which should be coming up
shortly once this is out of the way.
Regression-tested. OK for trunk?
Regards
Thomas
2017-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/37131
* frontend-passes.c (inline_matmul_assign): Also check bounds
for allocatable lhs and matrix-vector-multiplication.
2017-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/37131
* gfortran.dg/matmul_bounds_11.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p-bounds.diff
Type: text/x-patch
Size: 1644 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170501/0e14963a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matmul_bounds_11.f90
Type: text/x-fortran
Size: 502 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170501/0e14963a/attachment-0001.bin>
More information about the Gcc-patches
mailing list