https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61018
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jakub at gcc dot gnu.org Resolution|--- |INVALID --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I really don't see why this is considered a bug. Some diagnostics are simply performed only on code that is actually used. You can always use -fkeep-inline-functions which causes it to warn, or just use the method. If you never use it, it isn't that important if it is broken.