Template class compilation

I tried creating a dummy template class, but it gives syntax error.
my.sv:
class cMy #(type T)
int a;
endclass

compilation error:
Parsing design file ‘my.sv’
Error-[SE] Syntax error
Following verilog source has syntax error :
“my.sv”, 3: token is ‘)’
class cMy #(type T);

Am I missing something very trivial?

In reply to bhupesh.paliwal:

I figured, default type declaration looks mandatory it seems.
my.sv:
class cMy #(type T = int)
int a;
endclass

I hope this is root cause …

In reply to bhupesh.paliwal:

Defaults are not required for parameters, nor recommended. As a template class, you would want the user to provide explicit overrides.

Perhaps you are using a very old version of software.

In reply to dave_59:

Ok. Probably you are right.
Currently using vcs 2013