Mercury has had a series of bugfixes since the latest that is in Portage, version 22.01.1. It is now at 22.01.5. It would be most kind if a new ebuild were provided. Reproducible: Always
In the future, please start the summary with "category/package", eg. dev-lang/mercury.