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/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented



------- Comment #13 from pault at gcc dot gnu dot org  2007-06-11 22:39 -------
Subject: Bug 29786

Author: pault
Date: Mon Jun 11 22:39:21 2007
New Revision: 125628

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

        PR fortran/29786
        PR fortran/30875
        * trans-common.c (get_init_field): New function.
        (create_common): Call get_init_field for overlapping
        initializers in equivalence blocks.
        * resolve.c (resolve_equivalence_derived, resolve_equivalence):
        Remove constraints on initializers in equivalence blocks.
        * target-memory.c (expr_to_char, gfc_merge_initializers):
        New functions.
        (encode_derived): Add the bit offset to the byte offset to get
        the total offset to the field.
        * target-memory.h : Add prototype for gfc_merge_initializers.


2007-06-12  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/29786
        * gfortran.dg/equiv_7.f90: New test.
        * gfortran.dg/equiv_constraint_7.f90: Change error message.


        PR fortran/30875
        * gfortran.dg/equiv_constraint_5.f90: Correct code and error.

Added:
    trunk/gcc/testsuite/gfortran.dg/equiv_7.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/target-memory.c
    trunk/gcc/fortran/target-memory.h
    trunk/gcc/fortran/trans-common.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/equiv_constraint_5.f90
    trunk/gcc/testsuite/gfortran.dg/equiv_constraint_7.f90


-- 


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


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