struct S {};

S s;

void f() {
  reinterpret_cast<const S>(s); // { dg-error "" }
}


syntax highlighted by Code2HTML, v. 0.9.1