This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56008] [F03] wrong code with lhs-realloc on assignment with derived types having allocatable components
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 19 Jan 2013 15:54:50 +0000
- Subject: [Bug fortran/56008] [F03] wrong code with lhs-realloc on assignment with derived types having allocatable components
- Auto-submitted: auto-generated
- References: <bug-56008-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56008
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot |pault at gcc dot gnu.org
|gnu.org |
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> 2013-01-19 15:54:50 UTC ---
Created attachment 29221
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29221
Fix for this PR and PR 47517
Bootstraps and regtests OK
The data pointers of allocatable components need to be nullified, after
(re)allocation, before the assignment starts because of the test in allocation
for the allocation status of these components.
It's nearly 'obvious' but took me an age to get it :-)
I'll submit properly once I am back in France (tomorrow night if snow allows).
Paul