Fix off-by-one issue with inline matmul
authorTobias Burnus <burnus@net-b.de>
Fri, 12 Oct 2018 18:18:13 +0000 (20:18 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 12 Oct 2018 18:18:13 +0000 (20:18 +0200)
commit47b92d22d3aea04ce6a936c768953dd0406f41c2
tree3aa254da8f50163132eac6447ce9497870ab06cb
parentb4439561c4019cf3bc4c59cc6260d7464917f1e5
Fix off-by-one issue with inline matmul

        PR fortran/87597
        * expr.c (gfc_simplify_expr): Avoid simplifying
        the 'array' argument to lbound/ubound/lcobound/
        ucobound.

        PR fortran/87597
        * gfortran.dg/inline_matmul_24.f90: New.

From-SVN: r265126
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/inline_matmul_24.f90 [new file with mode: 0644]