http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60765
Bug ID: 60765 Summary: Function attributes ignored for pointer-to-member-function parameters Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: patrick at parcs dot ath.cx $ cat this.cc struct Foo; void foo (int& (Foo::*) () __attribute__ ((returns_nonnull))); $ g++ this.cc -c this.cc:4:55: warning: ‘returns_nonnull’ attribute directive ignored [-Wattributes] foo (int& (Foo::*) () __attribute__ ((returns_nonnull))); ^