public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vehre at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/58586] ICE with derived type with allocatable component passed by value
Date: Mon, 06 Jul 2015 10:26:00 -0000	[thread overview]
Message-ID: <bug-58586-4-4rqjKguwCE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58586-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586

--- Comment #8 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Mon Jul  6 10:26:12 2015
New Revision: 225447

URL: https://gcc.gnu.org/viewcvs?rev=225447&root=gcc&view=rev
Log:
gcc/testsuite/ChangeLog:

2015-07-06  Andre Vehreschild  <vehre@gmx.de>

        PR fortran/58586
        * gfortran.dg/alloc_comp_class_3.f03: New test.
        * gfortran.dg/alloc_comp_class_4.f03: New test.


gcc/fortran/ChangeLog:

2015-07-06  Andre Vehreschild  <vehre@gmx.de>

        PR fortran/58586
        * resolve.c (resolve_symbol): Non-private functions in modules
        with allocatable or pointer components are marked referenced
        now. Furthermore is the default init especially for those
        components now done in gfc_conf_procedure_call preventing
        duplicate code.
        * trans-decl.c (gfc_generate_function_code): Generate a fake
        result decl for functions returning an object with allocatable
        components and initialize them.
        * trans-expr.c (gfc_conv_procedure_call): For value typed trees
        use the tree without indirect ref. And for non-decl trees
        add a temporary variable to prevent evaluating the tree
        multiple times (prevent multiple function evaluations).
        * trans.h: Made gfc_trans_structure_assign () protoype
        available, which is now needed by trans-decl.c:gfc_generate_
        function_code(), too.


Added:
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_class_3.f03
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_class_4.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans.h


  parent reply	other threads:[~2015-07-06 10:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic " vladimir.fuka at gmail dot com
2013-10-01 21:13 ` [Bug fortran/58586] [OOP] " burnus at gcc dot gnu.org
2014-01-05 12:34 ` dominiq at lps dot ens.fr
2014-01-05 13:53 ` [Bug fortran/58586] ICE with derived type with " janus at gcc dot gnu.org
2014-01-05 14:00 ` janus at gcc dot gnu.org
2015-04-15 18:04 ` vehre at gcc dot gnu.org
2015-05-11  9:08 ` dominiq at lps dot ens.fr
2015-05-11 10:06 ` juergen.reuter at desy dot de
2015-07-06 10:26 ` vehre at gcc dot gnu.org [this message]
2015-07-09 10:42 ` vehre at gcc dot gnu.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=bug-58586-4-4rqjKguwCE@http.gcc.gnu.org/bugzilla/ \
    --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).