fork download
  1. template<typename T>
  2. class A
  3. {
  4. void a()
  5. {
  6. blabla();
  7.  
  8. Bla b;
  9. b.bla();
  10.  
  11. }
  12.  
  13. };
  14.  
  15. int main()
  16. {
  17.  
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In member function ‘void A<T>::a()’:
prog.cpp:6: error: there are no arguments to ‘blabla’ that depend on a template parameter, so a declaration of ‘blabla’ must be available
prog.cpp:6: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
prog.cpp:8: error: ‘Bla’ was not declared in this scope
prog.cpp:8: error: expected `;' before ‘b’
prog.cpp:9: error: ‘b’ was not declared in this scope
stdout
Standard output is empty