[Bug c++/60765] New: Function attributes ignored for pointer-to-member-function parameters
patrick at parcs dot ath.cx
gcc-bugzilla@gcc.gnu.org
Fri Apr 4 23:11:00 GMT 2014
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)));
^
More information about the Gcc-bugs
mailing list