PR fortran/99840 - ICE in gfc_simplify_matmul, at fortran/simplify.c:4777
authorHarald Anlauf <anlauf@gmx.de>
Thu, 1 Apr 2021 05:49:32 +0000 (07:49 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 1 Apr 2021 05:49:32 +0000 (07:49 +0200)
commitd7cef070bf43bfb3f3d77bac42eadea06c4b0281
treec70e4882c328bd07653b9d3df48bc2385672d3ea
parent95d217ab52d31dc06fda42fc136dea165909e88b
PR fortran/99840 - ICE in gfc_simplify_matmul, at fortran/simplify.c:4777

The simplification of the transposition of a constant array shall properly
initialize and set the shape of the result.

gcc/fortran/ChangeLog:

PR fortran/99840
* simplify.c (gfc_simplify_transpose): Properly initialize
resulting shape.

gcc/testsuite/ChangeLog:

PR fortran/99840
* gfortran.dg/transpose_5.f90: New test.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/transpose_5.f90 [new file with mode: 0644]