fork(2) download
  1. template <class A>
  2. struct Q {};
  3.  
  4. template <class T>
  5. struct base {};
  6.  
  7. template <class w>
  8. struct base<Q<w>>;
  9.  
  10. int main()
  11. {
  12. base<Q<int>> x;
  13. base<const Q<int>> y;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:12:16: error: aggregate ‘base<Q<int> > x’ has incomplete type and cannot be defined
   base<Q<int>> x;
                ^
stdout
Standard output is empty