[Bug c++/81587] GCC doesn't warn about calling functions that don't exist

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 27 20:05:00 GMT 2017


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |marxin at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
> 
> int main (void)
> {
>     float random_name(double haystack, double needle);
>     void* missingf(float test);
> 

Hello.

These are declarations of nested functions, you're not using them. Thus the
compiler does not complain. Closing as invalid.


More information about the Gcc-bugs mailing list