blob: cedd35518737c0fd4f90da0ae5b593e70f4232df [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 "3:invalid .const_cast." }
}