https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47461
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Works with 4.9.0 w.cc: In function ‘void f(C*)’: w.cc:6:33: warning: ignoring return value of ‘bool C::f(T*) [with T = int]’, declared with attribute warn_unused_result [-Wunused-result] void f(C* pc) { int i; pc->f(&i); } ^