[Bug fortran/56872] [4.8/4.9 Regression] Incorrect SUM evaluation, involving implied-do loop, with -ffrontend-optimize

mikael at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 22 14:09:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56872

--- Comment #13 from Mikael Morin <mikael at gcc dot gnu.org> 2013-04-22 14:09:00 UTC ---
Author: mikael
Date: Mon Apr 22 14:07:29 2013
New Revision: 198139

URL: http://gcc.gnu.org/viewcvs?rev=198139&root=gcc&view=rev
Log:
2013-04-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
        Mikael Morin  <mikael@gcc.gnu.org>

    PR fortran/56872
    * frontend-passes.c (copy_walk_reduction_arg): Change argument type
    to gfc_constructor.  If it has an iterator, wrap the copy of its
    expression in an array constructor with that iterator.  Don't special
    case function expressions.
    (callback_reduction): Update caller.  Don't return early if there is
    an iterator.

2013-04-22  Thomas Koenig  <tkoenig@gcc.gnu.org>
        Mikael Morin  <mikael@gcc.gnu.org>

    PR fortran/56872
    * gfortran.dg/array_constructor_45.f90:  New test.
    * gfortran.dg/array_constructor_46.f90:  New test.
    * gfortran.dg/array_constructor_47.f90:  New test.
    * gfortran.dg/array_constructor_40.f90:  Adjust number of
    while loops.


Added:
    branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/array_constructor_45.f90
    branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/array_constructor_46.f90
    branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/array_constructor_47.f90
Modified:
    branches/gcc-4_8-branch/gcc/fortran/ChangeLog
    branches/gcc-4_8-branch/gcc/fortran/frontend-passes.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/array_constructor_40.f90



More information about the Gcc-bugs mailing list