Why is this an issue?

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

How to fix it

Code examples

Noncompliant code example

localparam int foo = func();
function int func;
  int i[string];
  return i["Hello"]; // Noncompliant
endfunction