Static and automatic class object difference

In reply to srvm:

Hi

I ran the code on Edaplayground.com and could see the warnings!\

-BR
Hash

[2014-05-15 08:12:45 UTC] vlib work && vlog -writetoplevels modelsim.tops ‘-timescale’ ‘1ns/1ns’ ‘-mfcu’ ‘+acc=rmb’ ‘-sv’ ‘-suppress’ ‘2181’ design.sv testbench.sv && vsim -c -do “onElabError resume; run -all; exit” -f modelsim.tops ‘-suppress’ ‘3829’
Model Technology ModelSim ALTERA vlog 10.1d Compiler 2012.11 Nov 2 2012
**** Warning: design.sv(6): (vlog-LRM-2244) Variable ‘a’ is implicitly static. You must explicitly declare it as static or automatic.**
– Compiling package design_sv_unit
– Compiling module top
**** Warning: design.sv(6): (vlog-LRM-2244) Variable ‘a’ is implicitly static. You must explicitly declare it as static or automatic.**

Top level modules:
top
Reading /altera-quartus/13.1/modelsim_ase/tcl/vsim/pref.tcl

10.1d

vsim -do {onElabError resume; run -all; exit} -c -suppress 3829 top

Loading sv_std.std

Loading work.design_sv_unit

Loading work.top

onElabError resume

resume

run -all

exit

Done