A static method is different from a task with static lifetime. The former refers to the lifetime of the method within the class, while the latter refers to the lifetime of the arguments and variables within the task.
class TwoTasks;
static task t1(); ... endtask // static class method with
// automatic variable lifetime
task static t2(); ... endtask // ILLEGAL: non-static class method with
// static variable lifetime
endclass
but again this works fine with 2 simulator and 1 simulator is giving warnings. still working fine with all simulators.
Actually, 2 simulators produce a warning and two simulators let it pass through. I would say that anyone who writes task static is probably confused with static task.
This Mentor sponsored public forum is not for discussing tool specific issues. Please read your tool’s user manual or contact your tool vendor directly for support.