http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60913
Bug ID: 60913
Summary: Memory leak with deferred operators
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: alberto.ramos at desy dot de
Created attachment 32648
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32648&action=edit
Module with an overloaded operator with a deferred routine
When overloading an operator with a deferred procedure, gfortran leaks (i.e.
seem that does not free) memory.
I attach an example code that leaks around 60KB in my system with the following
compilers:
GNU Fortran (FreeBSD Ports Collection) 4.6.4
Copyright (C) 2011 Free Software Foundation, Inc.
GNU Fortran (FreeBSD Ports Collection) 4.8.3 20140220 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Fortran (FreeBSD Ports Collection) 4.9.0 20140223 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.
Thanks,
A.