# VERILOG2038: Constant functions should not access nonexistent elements of dynamic arrays ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
HIGH--Intentionality | Logical10minsynthesis, vscode, simulation, linter
``` ## Description ```{raw} html

A constant function tried to access a nonexistent element of a dynamic array.

Noncompliant code example

localparam int foo = func();
function int func;
  automatic int i[] = new [2];
  return i[4]; // Noncompliant
endfunction
``` ## Parameters No parameters. ```{raw} html ```