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

--- Comment #6 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

An additional test case, in two parts: Fortran & C.   The bug appears as:
malloc: *** error for object 0x7fff695a8eb8: pointer being freed was not
allocated

The problem is observed for 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.

Reply via email to