1 struct A
2 {
3   int membervar;
4 };
5 
6 typedef const A type;
7 
getmemberptr()8 int type::* getmemberptr() { return &type::membervar; }
9