Bug 79134 - Implicit declaration of free due to missing include
Summary: Implicit declaration of free due to missing include
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 6.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-18 18:39 UTC by Dirk Vanden Boer
Modified: 2019-03-17 16:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2017-02-06 00:00:00


Attachments
missing include patch (211 bytes, patch)
2017-01-18 18:39 UTC, Dirk Vanden Boer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Vanden Boer 2017-01-18 18:39:17 UTC
Created attachment 40537 [details]
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
Comment 1 Dominique d'Humieres 2017-02-06 15:02:54 UTC
> The attached patch adds the missing include

Patches should be submitted for review to fortran@gcc.gnu.org and gcc-patches@gcc.gnu.org.
Comment 2 Dominique d'Humieres 2019-01-26 13:38:24 UTC
Since the patch has rotten for two years, it no longer applies. Without an update submitted for review to fortran@gcc.gnu.org and gcc-patches@gcc.gnu.org, I'll close the PR as WONTFIX.
Comment 3 Dominique d'Humieres 2019-03-17 16:40:53 UTC
No feedback -> WONTFIX.