http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49111
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #24328|application/octet-stream |text/plain mime type| | --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-05-22 17:04:39 UTC --- Comment on attachment 24328 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24328 Test case (In reply to comment #0) > gfortran warns about the private symbol 'strerror' being given a binding > label. > > In sections 5.3.2 and 5.3.5 of the Fortran 2008 standard, there seems to be no > restriction between the BIND and PRIVATE attributes ---[...] and therefore no > warning should be issued by the gfortran. The Fortran standard only states whether something is valid or not - not whether a compiler should issue a warning or not. The idea is that having PRIVATE (making it inaccessible from outside the module by direct means) and having a C binding (make it available out side) are in a way opposite concepts - and thus possible unintended. However, for an INTERFACE - as opposed to a module procedure - a warning indeed does not make much sense.