// PR c++/84518
// { dg-do compile { target c++11 } }
template<typename T> void foo()
{
  T x[=];  // { dg-error "expected" }
  [&x]{};  // { dg-prune-output "not declared" }
}
// PR c++/84518
// { dg-do compile { target c++11 } }
template<typename T> void foo()
{
  T x[=];  // { dg-error "expected" }
  [&x]{};  // { dg-prune-output "not declared" }
}