From 74f5e5c93d27c4093561b792572164dab8b27e6d Mon Sep 17 00:00:00 2001 From: tkoenig Date: Mon, 9 Jul 2007 22:34:43 +0000 Subject: 2007-07-09 Thomas Koenig 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 PR libfortran/32336 * gfortran.dg/matmul_5.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126498 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/generated/matmul_i1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libgfortran/generated/matmul_i1.c') diff --git a/libgfortran/generated/matmul_i1.c b/libgfortran/generated/matmul_i1.c index ce98de17950..ae035076bed 100644 --- a/libgfortran/generated/matmul_i1.c +++ b/libgfortran/generated/matmul_i1.c @@ -169,7 +169,8 @@ matmul_i1 (gfc_array_i1 * 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) { -- cgit v1.2.1