[Bug fortran/64118] Strange warning about unused function/subroutine

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Sun Nov 30 07:26:00 GMT 2014


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

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-30
                 CC|                            |Joost.VandeVondele at mat dot ethz
                   |                            |.ch
     Ever confirmed|0                           |1

--- Comment #1 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
confirmed, looks like the -Wunused-function warning doesn't notice if the
address of a function is taken.


One surprising aspect of this 'trick' of taking addresses of functions is that
it makes private procedures of modules available/callable outside of the
module.



More information about the Gcc-bugs mailing list