summaryrefslogtreecommitdiff
path: root/libgfortran/generated/matmul_c10.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/matmul_c10.c')
-rw-r--r--libgfortran/generated/matmul_c10.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/generated/matmul_c10.c b/libgfortran/generated/matmul_c10.c
index 5e3b281245c..d7d4c650a98 100644
--- a/libgfortran/generated/matmul_c10.c
+++ b/libgfortran/generated/matmul_c10.c
@@ -169,7 +169,8 @@ matmul_c10 (gfc_array_c10 * 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)
{