struct X { constexpr static int size() {return 5;} static const int array[size()]; }; int main () {}
Standard input is empty
prog.cpp:3:36: error: size of array ‘array’ is not an integral constant-expression
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!