[Bug fortran/61831] [4.9/ 5 Regression] runtime error: pointer being freed was not allocated

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Jul 21 09:46:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61831

--- Comment #56 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
BTW there is a typo in gfortran.dg/derived_constructor_comps_6.f90 which leads
to several

UNRESOLVED: gfortran.dg/derived_constructor_comps_6.f90   -O*  
scan-tree-dump-times original "__builtin_free" 33
UNRESOLVED: gfortran.dg/derived_constructor_comps_6.f90   -O*  
scan-tree-dump-times original "__builtin_malloc" 15

This is fixed by the following  patch

--- ../_clean/gcc/testsuite/gfortran.dg/derived_constructor_comps_6.f90
2015-07-17 12:24:40.000000000 +0200
+++ gcc/testsuite/gfortran.dg/derived_constructor_comps_6.f90   2015-07-18
12:12:26.000000000 +0200
@@ -1,5 +1,5 @@
 ! { dg-do run }
-! { dg-additional-options "-fsanitize=address -fdump-tree-original"
+! { dg-additional-options "-fsanitize=address -fdump-tree-original" }
 !
 ! PR fortran/61831
 ! The deallocation of components of array constructor elements



More information about the Gcc-bugs mailing list