[Bug fortran/92621] Problems with memory handling with allocatable intent(out) arrays with bind(c)
briggs.michaels at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 22 14:03:32 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621
--- Comment #7 from Michael Briggs <briggs.michaels at gmail dot com> ---
Comment on attachment 49834
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49834
fortran portion of test case
First part of a two part test case, Fortran & C.
The bug appears as: malloc: *** error for object 0x7fff695a8eb8: pointer being
freed was not allocated
The problem is observed in gcc/gfortran 9.3.0 and 10.2.0
If the intent of "array" is changed from "out" to "inout" the program runs
without any problem.
More information about the Gcc-bugs
mailing list