struct S {}; S s; void f() { reinterpret_cast(s); // { dg-error "3:invalid cast" } }