This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57839] Reallocate on assignment does not work properly
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Jan 2014 08:44:38 +0000
- Subject: [Bug fortran/57839] Reallocate on assignment does not work properly
- Auto-submitted: auto-generated
- References: <bug-57839-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57839
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2014-01-07
Ever confirmed|0 |1
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
This PR seems to be fixed for 4.9.0. On darwin with 4.8.2, I get
name: name
aliases: ?id
name: id
aliases:
name: status
aliases: state,validity,test
and valgrind complains loudly about invalid reads, while I get
name: name
aliases: label
name: id
aliases:
name: status
aliases: state,validity,test
and valgrind reports a memory leak only
==29599==
==29599== HEAP SUMMARY:
==29599== in use at exit: 866 bytes in 6 blocks
==29599== total heap usage: 48 allocs, 42 frees, 10,569 bytes allocated
==29599==
==29599== 589 (336 direct, 253 indirect) bytes in 1 blocks are definitely lost
in loss record 4 of 4
==29599== at 0x100015891: realloc (vg_replace_malloc.c:635)
==29599== by 0x100003761: MAIN__ (pr57839.f90:29)
==29599== by 0x100003C25: main (pr57839.f90:42)
==29599==
==29599== LEAK SUMMARY:
==29599== definitely lost: 336 bytes in 1 blocks
==29599== indirectly lost: 253 bytes in 3 blocks
==29599== possibly lost: 0 bytes in 0 blocks
==29599== still reachable: 189 bytes in 1 blocks
==29599== suppressed: 88 bytes in 1 blocks