// PR c++/27804
// { dg-do compile }

bool foo()
{
  const int i = X;  // { dg-error "not declared" }
  return i > 0;
}


syntax highlighted by Code2HTML, v. 0.9.1