blob: fd2be1f44448d1098ee9d89de8b7ab61794d22ab [file] [log] [blame]
struct B {};
struct D : public B {};
typedef int B::*bm;
typedef int D::*dm;
bm bp;
void f() {
const_cast<dm>(bp); // { dg-error "" }
}