diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2007-07-09 22:34:43 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2007-07-09 22:34:43 +0000 |
commit | 18c492a9942639026fc27de5f1631f35b3d1b5ab (patch) | |
tree | d4f862e620d24da8c9d4a5c46013f07251cfcc85 /libgfortran/generated/matmul_i2.c | |
parent | 924a20b64b21c176e07229e0d0c227d07b1040f9 (diff) | |
download | gcc-18c492a9942639026fc27de5f1631f35b3d1b5ab.zip gcc-18c492a9942639026fc27de5f1631f35b3d1b5ab.tar.gz gcc-18c492a9942639026fc27de5f1631f35b3d1b5ab.tar.bz2 |
re PR libfortran/32336 (matmul: flag runtime- instead of assertation error)
2007-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/32336
* m4/matmul.m4: When the dimension of b is incorrect,
raise a runtime error instead of a failed assertion.
* generated/matmul_i1.c: Regenerated.
* generated/matmul_i2.c: Regenerated.
* generated/matmul_i4.c: Regenerated.
* generated/matmul_i8.c: Regenerated.
* generated/matmul_i16.c: Regenerated.
* generated/matmul_r4.c: Regenerated.
* generated/matmul_r8.c: Regenerated.
* generated/matmul_r10.c: Regenerated.
* generated/matmul_r16.c: Regenerated.
2007-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/32336
* gfortran.dg/matmul_5.f90: New test case.
From-SVN: r126498
Diffstat (limited to 'libgfortran/generated/matmul_i2.c')
-rw-r--r-- | libgfortran/generated/matmul_i2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/generated/matmul_i2.c b/libgfortran/generated/matmul_i2.c index b86839e..7287b6b 100644 --- a/libgfortran/generated/matmul_i2.c +++ b/libgfortran/generated/matmul_i2.c @@ -169,7 +169,8 @@ matmul_i2 (gfc_array_i2 * const restrict retarray, xcount = a->dim[0].ubound + 1 - a->dim[0].lbound; } - assert(count == b->dim[0].ubound + 1 - b->dim[0].lbound); + if (count != b->dim[0].ubound + 1 - b->dim[0].lbound) + runtime_error ("dimension of array B incorrect in MATMUL intrinsic"); if (GFC_DESCRIPTOR_RANK (b) == 1) { |