# VERILOG2038: Constant functions should not access nonexistent elements of dynamic arrays ## Summary ```{raw} html
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter |
A constant function tried to access a nonexistent element of a dynamic array.
localparam int foo = func(); function int func; automatic int i[] = new [2]; return i[4]; // Noncompliant endfunction``` ## Parameters No parameters. ```{raw} html ```