fork download
  1. #include <iostream>
  2.  
  3. template <typename T>
  4. class base
  5. {
  6. };
  7.  
  8. struct myStruct;
  9.  
  10. class derived : base<derived::myStruct>
  11. {
  12. public:
  13. struct myStruct
  14. {
  15. };
  16. };
  17.  
  18. int main ()
  19. {
  20. return 0;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:10:22: error: incomplete type 'derived' used in nested name specifier
prog.cpp:10:22: error: incomplete type 'derived' used in nested name specifier
prog.cpp:10:39: error: template argument 1 is invalid
stdout
Standard output is empty