prog.cpp:26:7: error: template parameters not deducible in partial specialization:
class Location<T2> : public T {
^~~~~~~~~~~~
prog.cpp:26:7: note: ‘T’
prog.cpp: In function ‘int main()’:
prog.cpp:37:20: error: wrong number of template arguments (2, should be at least 0)
Location<Test, int> obj;
^
prog.cpp:15:7: note: provided for ‘template<class T> class Location’
class Location : public T {
^~~~~~~~