fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(int){}
  5.  
  6. template <class> struct a
  7. {
  8. void bar() { foo(); }
  9. };
  10.  
  11. int main() {
  12. a<int> aint;
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In member function 'void a< <template-parameter-1-1> >::bar()':
prog.cpp:8:20: error: too few arguments to function 'void foo(int)'
   void bar() { foo(); }
                    ^
prog.cpp:4:6: note: declared here
 void foo(int){}
      ^
stdout
Standard output is empty