Why is this an issue?

SystemVerilog standard does not allow a DPI import task to be marked as pure.

Even if some tools allow this syntax, refrain from using it to keep your code portable.

How to fix it

Code examples

Noncompliant code example

import "DPI-C" pure task func(logic [3:0] a);