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/66035] [5/6 Regression] gfortran ICE segfault Date: Fri, 17 Jul 2015 10:16:00 -0000 [thread overview] Message-ID: <bug-66035-4-EG4zWfVcDS@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66035-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66035 --- Comment #6 from vehre at gcc dot gnu.org --- Author: vehre Date: Fri Jul 17 10:16:21 2015 New Revision: 225928 URL: https://gcc.gnu.org/viewcvs?rev=225928&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2015-07-17 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/66035 * trans-expr.c (alloc_scalar_allocatable_for_subcomponent_assignment): Compute the size to allocate for class and derived type objects correclty. (gfc_trans_subcomponent_assign): Only allocate memory for a component when the object to assign is not an allocatable class object (the memory is already present for allocatable class objects). Furthermore use copy_class_to_class for assigning the rhs to the component (may happen for dummy class objects on the rhs). gcc/testsuite/ChangeLog: 2015-07-17 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/66035 * gfortran.dg/structure_constructor_13.f03: New test. Added: trunk/gcc/testsuite/gfortran.dg/structure_constructor_13.f03 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2015-07-17 10:16 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-06 11:21 [Bug fortran/66035] New: [5.1 " Melven.Roehrig-Zoellner at DLR dot de 2015-05-06 11:24 ` [Bug fortran/66035] " Melven.Roehrig-Zoellner at DLR dot de 2015-05-06 13:23 ` [Bug fortran/66035] [5/6 " dominiq at lps dot ens.fr 2015-05-06 14:38 ` vehre at gcc dot gnu.org 2015-05-06 17:01 ` vehre at gcc dot gnu.org 2015-05-09 9:35 ` evangelos at foutrelis dot com 2015-07-17 10:16 ` vehre at gcc dot gnu.org [this message] 2015-07-21 10:36 ` 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-66035-4-EG4zWfVcDS@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: linkBe 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).