[Bug c++/60716] gcc cannot detect static recursive function

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 31 17:07:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60716

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org
          Component|c                           |c++

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The C FE warns, but not C++ FE.
u2.C:1:12: warning: ‘f’ defined but not used [-Wunused-function]
 static int f( int n)
            ^


More information about the Gcc-bugs mailing list