fork(1) download
  1. void f(auto i = 42){}
  2.  
  3. int main() {
  4. f();
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:4:4: error: no matching function for call to 'f()'
  f();
    ^
prog.cpp:1:6: note: candidate: template<class auto:1> void f(auto:1)
 void f(auto i = 42){}
      ^
prog.cpp:1:6: note:   template argument deduction/substitution failed:
prog.cpp:4:4: note:   couldn't deduce template parameter 'auto:1'
  f();
    ^
stdout
Standard output is empty