单项选择题

下列模板声明中,有语法错误的是______。

A.template<typename T>T fun(T x){return x;}
B.template<typename T>T fun(T x,int n){return x*n;}
C.template<class T>T fun(T *p){return *p;}
D.template<class T>T ctassA{T n;};