// PR c++/84518 // { dg-do compile { target c++11 } } template void foo() { int x[=]; // { dg-error "expected" } [&x]{}; } void bar() { foo<0>(); }