class A { }; template <typename T, typename... Args> class B { T<Args...> x; }; template <typename T> class B<T> { T x; }; main() { B<A> a; }
Standard input is empty
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; ^
Standard output is empty