This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31620] [4.3 regression] Zeroing one component of array of derived types zeros the whole structure.



------- Comment #8 from pault at gcc dot gnu dot org  2007-04-23 16:14 -------
Subject: Bug 31620

Author: pault
Date: Mon Apr 23 16:13:48 2007
New Revision: 124069

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124069
Log:
2007-04-23  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/31630
        * resolve.c (resolve_symbol): Allow resolution of formal
        namespaces nested within formal namespaces coming from modules.

        PR fortran/31620
        * trans-expr.c (gfc_trans_assignment): Make the call to
        gfc_trans_zero_assign conditional on the lhs array ref being
        the only reference.

2007-04-23  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/31630
        * gfortran.dg/used_types_17.f90: New test.

        PR fortran/31620
        * gfortran.dg/zero_array_components_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/used_types_17.f90
    trunk/gcc/testsuite/gfortran.dg/zero_array_components_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]