fork download
  1. template<class T>
  2. void func0(T const*) {}
  3.  
  4. template<class T>
  5. void func0(const T*) {}
  6.  
  7. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:6: error: redefinition of ‘template<class T> void func0(const T*)’
prog.cpp:2:6: error: ‘template<class T> void func0(const T*)’ previously declared here
stdout
Standard output is empty