template <typename = void> void f() { return 0; } int main() { f<int>(); }
Standard input is empty
prog.cpp: In function 'void f() [with <template-parameter-1-1> = int]': prog.cpp:7:12: instantiated from here prog.cpp:2:12: error: return-statement with a value, in function returning 'void'
Standard output is empty