https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98750
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- GCC doesn't emit any call to f() so it does detect it. Do you mean that it doesn't give a warning?