2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pmf1.C
blob013c21b6db9986ea010424ffc91c2db7198e2c52
1 // { dg-do compile }
3 // Origin: benko@sztaki.hu
5 // PR c++/10496: Incorrect pointer to member function diagnostics
6 // for constant member functions.
8 struct a
10   int f() const;
14 int
15 a::f() const
17   int (a::* b)() const = &f; // { dg-error "&a::f" }