re PR fortran/83998 (ICE in gfc_conv_intrinsic_dot_product, at fortran/trans-intrinsi...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 26 Jan 2018 19:33:16 +0000 (19:33 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 26 Jan 2018 19:33:16 +0000 (19:33 +0000)
commitdeece1aa0135de487e7846025efbc8f6cd79ffe2
treea9c519ee43c035b61abb368af203c86e9ef79138
parentde47f61f5e441f6ce498af603cbe35d86b556262
re PR fortran/83998 (ICE in gfc_conv_intrinsic_dot_product, at fortran/trans-intrinsic.c:4403)

2018-01-26  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83998
* simplify.c (compute_dot_product):  Initialize result to INTEGER(1) 0
or .false.  The summation does the correct type conversion.
(gfc_simplify_dot_product): Special case zero-sized arrays.

2018-01-26  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83998
* gfortran.dg/dot_product_4.f90

From-SVN: r257104
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dot_product_4.f90 [new file with mode: 0644]