PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn31.C
blobc99c59571e9f2a05b00b5c2e6477e726b717d6a5
1 // PR c++/70572
2 // { dg-do compile { target c++14 } }
4 void foo ()
6   decltype (auto) a = foo;  // { dg-error "initializer" }