Support SystemVerilog void casts & warn if not present
SystemVerilog supports casts; one use is to explicitly void a non-void function call, to avoid a lint warning:
function automatic integer f_int(); endfunction function automatic void g(); void'(f_int()); endfunctionVerilator faults this with
syntax error, unexpected voidIt would be useful if Verilator could support this simple idiom, given that functions are generally supported and this kind of voiding cast may be mandated by house style or used in the output of Verilog generators.
#3 Updated by Wilson Snyder 8 months ago
- Subject changed from Support SystemVerilog void casts to Support SystemVerilog void casts & warn if not present
- Status changed from Feature to Resolved
- Assignee set to Wilson Snyder
Fixed in git towards 4.012.
Also added IGNOREDRETURN warning when no cast present, which is required by IEEE.
Also available in: Atom