summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/pmf4.C
blob: 709532e8fab21037ee601c5aa481300182f9f231 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// PRMS Id: 4484 (bug 5)
// Bug: g++ can't convert between pmf types.

class A;
typedef void (A::*pmf)();
typedef void (A::*pmfc)() const;

pmfc p = (pmfc)(pmf)0;		// { dg-bogus "" } pmf conversion