https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621
Bug ID: 92621 Summary: Segmentation fault with assumed rank allocatable intent(out) with bind(c) Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jrfsousa at gmail dot com Target Milestone: --- Created attachment 47326 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47326&action=edit Code demonstrating problems. Hi all! Segmentation fault both on: GNU Fortran (GCC) 9.2.1 20191119 and GNU Fortran (GCC) 10.0.0 20191119 (experimental) Seems to be triggered by an erroneous call to free on entry (required by intent(out) *if* allocated) Heisenbug type does not trigger always, does not show under gdb or valgrind. Compiling using the flag "-static-libgfortran" seems to stabilize it, crashing repeatedly, also under gdb, but not under valgrind. The flag "-Wmaybe-uninitialized" generates garbage diagnostics.