void f(auto i = 42){} int main() { f(); }
Standard input is empty
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(); ^
Standard output is empty