This fixes
FAIL: g++.dg/cpp0x/lambda/lambda-decltype3.C -std=c++11 (test for excess errors)
due to
lambda-decltype3.C:25:6: error: lambda capture initializers only available with '-std=c++14' or '-std=gnu++14' [-Wc++14-extensions]
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/lambda/lambda-decltype3.C: Check __cpp_init_captures.
[=] {
[](decltype((x)) y) {}; // OK, lambda takes a parameter of type float const&
+#if __cpp_init_captures
[x=1](decltype((x)) y) {
decltype((x)) z = x; // OK, y has type int&, z has type int const&
};
+#endif
};
}