fork(1) download
  1. struct a {
  2. void f() {}
  3. void g() noexcept(noexcept(f())) {}
  4. };
  5.  
  6. int main() {
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:34: error: cannot call member function ‘void a::f()’ without object
     void g() noexcept(noexcept(f())) {}
                                  ^
stdout
Standard output is empty