| 1 |
// PR c++/21853 |
| 2 |
|
| 3 |
struct blah { |
| 4 |
int a; |
| 5 |
}; |
| 6 |
|
| 7 |
int main( int argc, char ** argv ) { |
| 8 |
int blah::* ptdma = &blah::a; |
| 9 |
|
| 10 |
const void *ptdmv = static_cast< void * >( &ptdma ); |
| 11 |
|
| 12 |
int blah::* const ptdmb = * static_cast< int blah::* const * >( ptdmv ); |
| 13 |
|
| 14 |
return 0; |
| 15 |
} |