1 // PR c++/66543 2 // { dg-do compile { target c++14 } } 3 // { dg-options "-Wunused-but-set-variable" } 4 main()5 int main() { 6 auto f = []() { }; 7 [=](auto) { 8 using Foo = decltype(f()); 9 }; 10 } 11