fork download
  1. struct X {
  2. constexpr static int size() {return 5;}
  3. static const int array[size()];
  4. };
  5.  
  6. int main () {}
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:36: error: size of array ‘array’ is not an integral constant-expression
stdout
Standard output is empty