fork(1) download
  1. struct S
  2. {
  3. int a() {return 0;}
  4. decltype(a()) b() {return 1;}
  5. };
  6.  
  7. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:16: error: cannot call member function 'int S::a()' without object
     decltype(a()) b() {return 1;}
                ^
prog.cpp:4:16: error: cannot call member function 'int S::a()' without object
stdout
Standard output is empty