What are pedantic errors?

What are pedantic errors why do we fix them if we can suppress them? since our test bench works fine even without fixing them unless and until we setup environment variables for pedantic errors to be reported?

In reply to vdb_sie:

In programming languages, pedantic errors are checks to be in strict compliance the the Language Reference Manual (LRM). Turning these checks on gives you the best chance of language compatibility across tools.

There are two main sources of these kinds of errors.

  1. Bugs or ambiguities in the LRM (like this one with an array of events which was recently fixed). Some tools see this as an obvious LRM omission and support it already.
  2. Bugs or misinterpretation of the LRM that have become so commonplace that other tools let is through. (The use of $psprintf instead of $sformatf)