Why is this an issue?

A constant function tried to pop an element from an empty queue.

How to fix it

Code examples

Noncompliant code example

localparam int foo = func();
function int func;
  automatic int i[$];
  return i.pop_back();
endfunction