const int (&arr)[3] = (const int[]){ -1, -1, -1}; int main() {}
Standard input is empty
prog.cpp:1: error: invalid initialization of non-const reference of type 'const int (&)[3]' from a temporary of type 'const int [3]'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!