PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / pr83634.C
blob70a396eb42177b58ec406539aaa7aafa89f8976a
1 // PR c++/83634
2 // { dg-do compile }
4 void
5 foo ()
7   const int x = fn ();          // { dg-error "was not declared in this scope" }
8   short n;
9   for (n = x; n < 100; ++n)
10     ;