// PR c++/18177

void foo()
{
  X; // { dg-error "" }
  const_cast<int&>(X);
}


syntax highlighted by Code2HTML, v. 0.9.1