https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79134
Bug ID: 79134 Summary: Implicit declaration of free due to missing include Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: dirk.vandenboer at vito dot be Target Milestone: --- Created attachment 40537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40537&action=edit missing include patch When building a mingw toolchain with fortran enabled the build fails due to an implicit declaration of free caused by a missing include. libgfortran/io/close.c uses the free function without including stdlib.h The attached patch adds the missing include