The following code does not compile in clang (it does in GCC):
struct A{ int a; }; auto test(){ constexpr A x{10}; return []{ return x;