struct X {}; int main() { X x; X& y{x}; X& z{y}; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:5:9: error: invalid initialization of non-const reference of type 'X&' from an rvalue of type '<brace-enclosed initializer list>' prog.cpp:6:9: error: invalid initialization of non-const reference of type 'X&' from an rvalue of type '<brace-enclosed initializer list>'
Standard output is empty