aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p8039.C
blob: fe58d09a6dc497ba2175a02c58611a8a623acb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// prms-id: 8039

class C {
public:
  int func ();
};

extern void bar(int*);

int main()
{
  int (C::*mfp)() = &C::func;
  bar((int*)mfp);		// ERROR - no clear semantics
}