blob: 70a396eb42177b58ec406539aaa7aafa89f8976a [file] [log] [blame]
// PR c++/83634
// { dg-do compile }
void
foo ()
{
const int x = fn (); // { dg-error "was not declared in this scope" }
short n;
for (n = x; n < 100; ++n)
;
}