[sv-bc] Is void function not implicitly declared inside the function

From: Surya Pratik Saha <spsaha_at_.....>
Date: Tue Jan 15 2008 - 02:29:32 PST
Hi,
As per V2K LRM (10.4.2 Returning a value from a function):
The function definition shall implicitly declare a variable, internal to the function, with the same name as the function.

Is it changed when the function is declared with void return type?
Is the following case legal?

module a;
  function void fnc;
    input x;
    //integer fnc;
    fnc  : assert(0 == 1);
  endfunction
endmodule

Some simulators pass if the function is declared inside class only. I did not see anything mentioned in SV LRM.
-- 
Regards
Surya

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Tue Jan 15 02:30:33 2008

This archive was generated by hypermail 2.1.8 : Tue Jan 15 2008 - 02:32:32 PST