[patch, Fortran] Fix for PR 61999, dot_product simplification
Thomas Koenig
tkoenig@netcologne.de
Sat Aug 9 22:27:00 GMT 2014
Hello world,
the attached patch fixes the regression by converting the arguments
to dot_product to the proper types.
Regression-tested on x86_64-unknown-linux-gnu.
OK for all affected branches (trunk, 4.9 and 4.8)?
Thomas
2014-08-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/61999
* simplify.c (gfc_simplify_dot_product): Convert types of
vectors before calculating the result.
2014-08-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/61999
* gfortran.dg/dot_product_3.f90: New test case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140809/a5879d08/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dot_product_3.f90
Type: text/x-fortran
Size: 411 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140809/a5879d08/attachment-0001.bin>
More information about the Fortran
mailing list