[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-07-07 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 Dominique d'Humieres changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-07-07 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 Dominique d'Humieres changed: What|Removed |Added Assignee|pault at gcc dot gnu.org |dominiq at lps dot ens.fr

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-07-07 Thread dominiq at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 --- Comment #8 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Mon Jul 7 12:32:37 2014 New Revision: 212329 URL: https://gcc.gnu.org/viewcvs?rev=212329&root=gcc&view=rev Log: 2014-07-07 Dominique d'Humieres Mikael Morin

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-06-10 Thread dominiq at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 --- Comment #7 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Tue Jun 10 11:42:38 2014 New Revision: 211405 URL: http://gcc.gnu.org/viewcvs?rev=211405&root=gcc&view=rev Log: 2014-06-10 Dominique d'Humieres Mikael Morin

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-05-04 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 --- Comment #6 from Dominique d'Humieres --- Is the following patch OK? --- ../_clean/gcc/fortran/trans-expr.c2014-04-30 21:41:33.0 +0200 +++ gcc/fortran/trans-expr.c2014-05-04 00:42:50.0 +0200 @@ -6504,6 +6504,20 @@ gfc_c

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-04-27 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 --- Comment #5 from Dominique d'Humieres --- > Calling gfc_deallocate_alloc_comp for BT_CLASS looks wrong. ... I have only added " && expr->rank" to the three year old Mikael's patch. > You have to call the finalization wrapper - to ensure that

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-04-27 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 --- Comment #4 from Tobias Burnus --- (In reply to Dominique d'Humieres from comment #3) > + if ((expr->ts.type == BT_DERIVED || expr->ts.type == BT_CLASS) > + && expr->ts.u.derived->attr.alloc_comp && expr->rank > + && expr->expr_type

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2014-04-27 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 --- Comment #3 from Dominique d'Humieres --- > Fixed if one adds the code below (copied from gfc_conv_array_parameter). > I'm afraid this could change a memory leak into a double free (see PR 40850). > Also, not quite right (even if the middle-end

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2011-02-28 Thread mikael at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41936 Mikael Morin changed: What|Removed |Added Keywords||patch CC|

[Bug fortran/41936] Memory leakage with allocatables and user-defined operators

2009-11-12 Thread pault at gcc dot gnu dot org
--- Comment #1 from pault at gcc dot gnu dot org 2009-11-12 13:50 --- The testcase segfaults on the a = a + b and the c = c + d on Cygwin. On FC8 i386, valgrind does not show any problem with either and the testprogramme runs to completion! However, moving a = a + b to subroutine foo a