public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pault at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/30875] Equivalence of derived types with (same) default initializer
Date: Mon, 11 Jun 2007 22:39:00 -0000	[thread overview]
Message-ID: <20070611223938.1851.qmail@sourceware.org> (raw)
In-Reply-To: <bug-30875-6642@http.gcc.gnu.org/bugzilla/>



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

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=30875


  parent reply	other threads:[~2007-06-11 22:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-20  7:51 [Bug fortran/30875] New: incorrect error message for valid code jv244 at cam dot ac dot uk
2007-02-20 16:39 ` [Bug fortran/30875] Equivalence of derived types with (same) default initializer burnus at gcc dot gnu dot org
2007-03-17 23:39 ` brooks at gcc dot gnu dot org
2007-05-07  8:46 ` pault at gcc dot gnu dot org
2007-06-11 22:39 ` pault at gcc dot gnu dot org [this message]
2007-06-11 22:42 ` pault at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070611223938.1851.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).