Hello,

PR55603 seems to have been fixed at some point.
I have just committed the test and I'm about to close the PR.

Mikael

Index: gcc/testsuite/gfortran.dg/allocatable_function_9.f90
===================================================================
--- gcc/testsuite/gfortran.dg/allocatable_function_9.f90	(révision 0)
+++ gcc/testsuite/gfortran.dg/allocatable_function_9.f90	(révision 228151)
@@ -0,0 +1,17 @@
+! { dg-do run }
+!
+! PR fortran/55603
+! Check that the allocatable result is properly freed after use.
+!
+! Contributed by Damian Rouson <dam...@sourceryinstitute.org>
+
+  type foo
+  end type
+  type(foo) a
+  a = bar()
+contains
+  function bar()
+    type(foo), allocatable :: bar
+    allocate(bar)
+  end function
+end
Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog	(révision 228150)
+++ gcc/testsuite/ChangeLog	(révision 228151)
@@ -1,3 +1,8 @@
+2015-09-25  Mikael Morin  <mik...@gcc.gnu.org>
+
+	PR fortran/55603
+	* gfortran.dg/allocatable_function_9.f90: New.
+
 2015-09-25  Oleg Endo  <olege...@gcc.gnu.org>
 
 	PR target/67675

Reply via email to