fork download
  1. template<typename T>
  2. void f() {}
  3.  
  4. template<typename T>
  5. void g(T) {}
  6.  
  7. int main()
  8. {
  9. f<void>();
  10. g<void>();
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:10:12: error: no matching function for call to 'g()'
stdout
Standard output is empty