summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/ptrmem5.C
blob: e36983d029d79692d5d6d535e5810560d51cb8d5 (plain)
1
2
3
4
5
6
7
// PR c++/15696

struct A {};

typedef void (A::*ftype)();

void foo() { A().*ftype(); } // { dg-error "" }