[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Nov 1 19:48:00 GMT 2008



------- Comment #16 from pault at gcc dot gnu dot org  2008-11-01 19:47 -------
Subject: Bug 37903

Author: pault
Date: Sat Nov  1 19:45:41 2008
New Revision: 141521

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141521
Log:
2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37903
        * trans-array.c (gfc_trans_create_temp_array): If n is less
        than the temporary dimension, assert that loop->from is
        zero (reverts to earlier versions). If there is at least one
        null loop->to[n], it is a callee allocated array so set the
        size to NULL and break.
        (gfc_trans_constant_array_constructor): Set the offset to zero.
        (gfc_trans_array_constructor): Remove loop shifting around the
        temporary creation.
        (gfc_conv_loop_setup): Prefer zero-based descriptors if
        possible.  Calculate the translation from loop variables to
        array indices if an array constructor.

2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37749
        * trans-array.c (gfc_trans_create_temp_array): If size is NULL
        use the array bounds for loop->to.

2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37903
        * gfortran.dg/vector_subscript_4.f90: New test.

2008-11-01  Mikael Morin  <mikael.morin@tele2.fr>

        PR fortran/37749
        * gfortran.dg/vector_subscript__5.f90: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/vector_subscript_4.f90
    branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/vector_subscript_5.f90
Modified:
    branches/gcc-4_3-branch/gcc/fortran/ChangeLog
    branches/gcc-4_3-branch/gcc/fortran/trans-array.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list