This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53389] [4.6/4.7/4.8 Regression] -frealloc-lhs: memory leak when assigning array function result to allocatable array, where one of its supplied arguments is itself an array function result
- From: "stephan.kramer at imperial dot ac.uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 May 2012 15:27:54 +0000
- Subject: [Bug fortran/53389] [4.6/4.7/4.8 Regression] -frealloc-lhs: memory leak when assigning array function result to allocatable array, where one of its supplied arguments is itself an array function result
- Auto-submitted: auto-generated
- References: <bug-53389-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53389
--- Comment #2 from Stephan Kramer <stephan.kramer at imperial dot ac.uk> 2012-05-18 15:27:54 UTC ---
(In reply to comment #1)
> Confirmed.
>
> Workaround is to use -fno-realloc-lhs
Excellent. Thanks for the suggested workaround. That'll save us a lot of
unnecessary refactoring.