fork(2) download
  1. class A
  2. {
  3. };
  4.  
  5. template <typename T, typename... Args>
  6. class B
  7. {
  8. T<Args...> x;
  9. };
  10.  
  11. template <typename T>
  12. class B<T>
  13. {
  14. T x;
  15. };
  16.  
  17. main() {
  18. B<A> a;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8:2: error: ‘T’ is not a template
  T<Args...> x;
  ^
prog.cpp:17:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 main() {
      ^
prog.cpp: In function ‘int main()’:
prog.cpp:18:7: warning: unused variable ‘a’ [-Wunused-variable]
  B<A> a;
       ^
stdout
Standard output is empty