1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// { dg-do compile } // Origin: benko@sztaki.hu // PR c++/10496: Incorrect pointer to member function diagnostics // for constant member functions. struct a { int f() const; }; int a::f() const { int (a::* b)() const = &f; // { dg-error "&a::f" } }