[patch, fortran] Really fix PR 56782

Thomas Koenig tkoenig@netcologne.de
Sun Apr 14 17:07:00 GMT 2013


Hello world,

the attached patch completely fixes the regression,
PR 56782.

Regression-tested.  OK for trunk and 4.8?

	Thomas

2013-04-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/56782
         * frontend-passes.c (copy_walk_reduction_arg):  Do not
         call the expression walker with callback_reduction.
         (insert_iterator_function):  New function.
         (callback_reduction):  If an iterator is present, call
         insert_iterator_function and reset the iterator on the
         original array iterator.

2013-04-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/56782
         * gfortran.dg/array_constructor_45.f90:  New test.
         * gfortran.dg/array_constructor_46.f90:  New test.
         * gfortran.dg/array_constructor_40.f90:  Adjust number of
         while loops.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p9.diff
Type: text/x-patch
Size: 3521 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130414/4b346b82/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_45.f90
Type: text/x-fortran
Size: 308 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130414/4b346b82/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_46.f90
Type: text/x-fortran
Size: 528 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130414/4b346b82/attachment-0002.bin>


More information about the Gcc-patches mailing list